{"id":"CVE-2026-64303","summary":"spi: fsl-lpspi: terminate the RX channel on TX prepare failure path","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nspi: fsl-lpspi: terminate the RX channel on TX prepare failure path\n\nWhen dmaengine_prep_slave_sg() fails for the TX channel, the error path\nterminates the TX DMA channel but leaves the RX channel running. Since\nthe RX channel was already submitted and issued prior to preparing\nthe TX descriptor, returning -EINVAL causes the SPI core to unmap the\nDMA buffers while the RX DMA engine continues writing to them, leading\nto potential memory corruption or use-after-free.\n\nTerminate the RX channel before returning on the TX prepare failure path.","modified":"2026-07-27T04:03:21.147707788Z","published":"2026-07-25T08:49:38.223Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64303.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/01980b5da56e573d62798d0ff6c86bcaa2b22cbe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/808033d80d5c9f8adf7e8de9317389270ce13430"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9d000bdd250d649a11cd7f733175686877344582"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ad370d1c7a9a832f77b2341513cd31188c9443af"},{"type":"WEB","url":"https://git.kernel.org/stable/c/af39a2698f69b584d14a00cffe0f51a2caa15337"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cce2063404b2341e7b2bbf85eddfcd70a31a0033"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d5c1060218a3749c8a18b36f8169d910fce20639"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e65505d91fa036a238968e4c10744244d1b968c4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64303.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64303"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"09c04466ce7ea494993c0635ba5edb6d2222a806"},{"fixed":"ad370d1c7a9a832f77b2341513cd31188c9443af"},{"fixed":"cce2063404b2341e7b2bbf85eddfcd70a31a0033"},{"fixed":"af39a2698f69b584d14a00cffe0f51a2caa15337"},{"fixed":"e65505d91fa036a238968e4c10744244d1b968c4"},{"fixed":"d5c1060218a3749c8a18b36f8169d910fce20639"},{"fixed":"808033d80d5c9f8adf7e8de9317389270ce13430"},{"fixed":"9d000bdd250d649a11cd7f733175686877344582"},{"fixed":"01980b5da56e573d62798d0ff6c86bcaa2b22cbe"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64303.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.2.0"},{"fixed":"5.10.261"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.212"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.178"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.145"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.96"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.39"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64303.json"}}],"schema_version":"1.7.5"}