Junglewise Threat Intelligence

CVE-2026-64303: Linux Kernel fsl-lpspi use-after-free in DMA transfer error path

CVE-2026-64303 · Severity: info · CVSS 0 · Published 2026-07-25

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's SPI driver for NXP Freescale LPSPI controllers could lead to memory corruption. When a specific data transmission step fails, the system incorrectly leaves a data receiving process running while cleaning up its memory. This can result in the system writing data to memory that has already been freed or reassigned, potentially causing system instability or crashes.

Technical details

A vulnerability exists in the fsl-lpspi SPI driver within the Linux kernel due to improper error handling in the fsl_lpspi_dma_transfer function. When dmaengine_prep_slave_sg() fails for the TX channel, the error path terminates the TX DMA channel but leaves the RX channel active. Because the RX channel is submitted prior to the TX descriptor preparation, returning -EINVAL causes the SPI core to unmap DMA buffers while the RX engine is still writing to them. This results in a use-after-free condition or memory corruption. The issue has been resolved by ensuring the RX channel is terminated before returning on the TX failure path.

Affected products

  • Linux Linux Kernel 5.2 to 6.10.y

Timeline

  • 2026-05-25: disclosed: Initial patch submitted by Carlos Song
  • 2026-07-25: advisory: CVE-2026-64303 published

References

Related threats