# CVE-2026-64221: spi: ti-qspi: fix use-after-free after DMA setup failure

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 4% of CVEs (2026-11-30)
- Published: 2026-07-24T15:23:07.502Z
- Modified: 2026-08-11T18:25:02.363Z
- Weaknesses: CWE-416
- Assigned by: Linux

## Description

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

spi: ti-qspi: fix use-after-free after DMA setup failure

The driver falls back to PIO mode if DMA setup fails during probe.

Make sure to clear the DMA channel pointer also if buffer allocation
fails to avoid passing a pointer to the released channel to the DMA
engine (or trying to free the channel a second time on late probe errors
or driver unbind).

This issue was flagged by Sashiko when reviewing a devres allocation
conversion patch.

(As written by CVE List.)

## Affected

- Linux Linux: from c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 before 9c6f306a8140962c7284197db54b96fdb5f468d6; from c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 before 3bbbe7ae3fdada0df4157c1ffe989f92dfa8dcd6; from c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 before d6f422b122922d1abee907d673bcc990e5f3672d; from c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 before f2dc841d7dc9063fe9b47ced869b1271e55052ae; from c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 before 1cd927002120678bd5d23c760246639caa53040e; from c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 before d7a076fb596c7b408ed6df74793a597990a6d860; from c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 before 178b9b570c0f75fa7e691490520328b20d19138e; from c687c46e9e4527c4b4d82bc3cca58c1b08bcfb83 before ea6ec3343e05f7937a53eb6d7617b3abdb4abc19; 4.12 (not affected: before 4.12; from 5.10.258 up to 5.10.*; from 5.15.209 up to 5.15.*; from 6.1.175 up to 6.1.*; from 6.6.142 up to 6.6.*; from 6.12.92 up to 6.12.*; from 6.18.34 up to 6.18.*; from 7.0.11 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 4.12 before 5.10.258; from 5.11 before 5.15.209; from 5.16 before 6.1.175; from 6.2 before 6.6.142; from 6.7 before 6.12.92; from 6.13 before 6.18.34; from 6.19 before 7.0.11; 7.1

## References

- <https://git.kernel.org/stable/c/9c6f306a8140962c7284197db54b96fdb5f468d6> (patch)
- <https://git.kernel.org/stable/c/3bbbe7ae3fdada0df4157c1ffe989f92dfa8dcd6> (patch)
- <https://git.kernel.org/stable/c/d6f422b122922d1abee907d673bcc990e5f3672d> (patch)
- <https://git.kernel.org/stable/c/f2dc841d7dc9063fe9b47ced869b1271e55052ae> (patch)
- <https://git.kernel.org/stable/c/1cd927002120678bd5d23c760246639caa53040e> (patch)
- <https://git.kernel.org/stable/c/d7a076fb596c7b408ed6df74793a597990a6d860> (patch)
- <https://git.kernel.org/stable/c/178b9b570c0f75fa7e691490520328b20d19138e> (patch)
- <https://git.kernel.org/stable/c/ea6ec3343e05f7937a53eb6d7617b3abdb4abc19> (patch)

## Sources

- CVE List: [CVE-2026-64221](https://www.cve.org/CVERecord?id=CVE-2026-64221), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-64221](https://nvd.nist.gov/vuln/detail/CVE-2026-64221), Public domain, modified 2026-08-11

---

Page: https://cve.day/CVE-2026-64221 · Whole record: https://cve.day/CVE-2026-64221.json · Rebuilt by cve.day 2026-11-25T22:59:30.005Z
