spi: fsl-lpspi: terminate the RX channel on TX prepare failure path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel e65505d91fa036a238968e4c10744244d1b968c4, Kernel 01980b5da56e573d62798d0ff6c86bcaa2b22cbe, Kernel 808033d80d5c9f8adf7e8de9317389270ce13430 and 12 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=09c04466ce7ea494993c0635ba5edb6d2222a806 <e65505d91fa036a238968e4c10744244d1b968c4, >=09c04466ce7ea494993c0635ba5edb6d2222a806 <01980b5da56e573d62798d0ff6c86bcaa2b22cbe, >=09c04466ce7ea494993c0635ba5edb6d2222a806 <808033d80d5c9f8adf7e8de9317389270ce13430, >=09c04466ce7ea494993c0635ba5edb6d2222a806 <9d000bdd250d649a11cd7f733175686877344582, >=09c04466ce7ea494993c0635ba5edb6d2222a806 <ad370d1c7a9a832f77b2341513cd31188c9443af, >=09c04466ce7ea494993c0635ba5edb6d2222a806 <af39a2698f69b584d14a00cffe0f51a2caa15337, >=09c04466ce7ea494993c0635ba5edb6d2222a806 <cce2063404b2341e7b2bbf85eddfcd70a31a0033, >=09c04466ce7ea494993c0635ba5edb6d2222a806 <d5c1060218a3749c8a18b36f8169d910fce20639, =5.2 | e65505d91fa036a238968e4c10744244d1b968c4, 01980b5da56e573d62798d0ff6c86bcaa2b22cbe, 808033d80d5c9f8adf7e8de9317389270ce13430, 9d000bdd250d649a11cd7f733175686877344582, ad370d1c7a9a832f77b2341513cd31188c9443af, af39a2698f69b584d14a00cffe0f51a2caa15337, cce2063404b2341e7b2bbf85eddfcd70a31a0033, d5c1060218a3749c8a18b36f8169d910fce20639 |
| linux-kernel: Kernel | >=5.16.0 <6.1.178, >=5.2.0 <5.10.261, >=6.13.0 <6.18.39, >=6.19.0 <7.1.4, >=6.2.0 <6.6.145, >=6.7.0 <6.12.96, >=5.11.0 <5.15.212 | 6.1.178, 5.10.261, 6.18.39, 7.1.4, 6.6.145, 6.12.96, 5.15.212 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket