CyberRota Analysis
AI-GeneratedA vulnerability in the Linux kernel affects the SPI (Serial Peripheral Interface) subsystem, specifically in the handling of DMA (Direct Memory Access) channels during transmission preparation failures. This flaw allows the RX channel to continue operating while the TX channel is terminated, potentially leading to memory corruption or use-after-free conditions. Organizations utilizing Linux systems, particularly those relying on SPI communication, should prioritize patching this critical vulnerability to mitigate risks of data corruption and system instability.
Original NVD Description
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.