CVE-2026-64303 PUBLISHED

spi: fsl-lpspi: terminate the RX channel on TX prepare failure path

Assigner: Linux
Reserved: 19.07.2026 Published: 25.07.2026 Updated: 25.07.2026

In the Linux kernel, the following vulnerability has been resolved:

spi: fsl-lpspi: terminate the RX channel on TX prepare failure path

When dmaengine_prep_slave_sg() fails for the TX channel, the error path terminates the TX DMA channel but leaves the RX channel running. Since the RX channel was already submitted and issued prior to preparing the TX descriptor, returning -EINVAL causes the SPI core to unmap the DMA buffers while the RX DMA engine continues writing to them, leading to potential memory corruption or use-after-free.

Terminate the RX channel before returning on the TX prepare failure path.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 09c04466ce7ea494993c0635ba5edb6d2222a806 to ad370d1c7a9a832f77b2341513cd31188c9443af (excl.)
  • affected from 09c04466ce7ea494993c0635ba5edb6d2222a806 to cce2063404b2341e7b2bbf85eddfcd70a31a0033 (excl.)
  • affected from 09c04466ce7ea494993c0635ba5edb6d2222a806 to af39a2698f69b584d14a00cffe0f51a2caa15337 (excl.)
  • affected from 09c04466ce7ea494993c0635ba5edb6d2222a806 to e65505d91fa036a238968e4c10744244d1b968c4 (excl.)
  • affected from 09c04466ce7ea494993c0635ba5edb6d2222a806 to d5c1060218a3749c8a18b36f8169d910fce20639 (excl.)
  • affected from 09c04466ce7ea494993c0635ba5edb6d2222a806 to 808033d80d5c9f8adf7e8de9317389270ce13430 (excl.)
  • affected from 09c04466ce7ea494993c0635ba5edb6d2222a806 to 9d000bdd250d649a11cd7f733175686877344582 (excl.)
  • affected from 09c04466ce7ea494993c0635ba5edb6d2222a806 to 01980b5da56e573d62798d0ff6c86bcaa2b22cbe (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 5.2 is affected
  • unaffected from 0 to 5.2 (excl.)
  • unaffected from 5.10.261 to 5.10.* (incl.)
  • unaffected from 5.15.212 to 5.15.* (incl.)
  • unaffected from 6.1.178 to 6.1.* (incl.)
  • unaffected from 6.6.145 to 6.6.* (incl.)
  • unaffected from 6.12.96 to 6.12.* (incl.)
  • unaffected from 6.18.39 to 6.18.* (incl.)
  • unaffected from 7.1.4 to 7.1.* (incl.)
  • unaffected from 7.2-rc1 to * (incl.)

References