# CVE-2026-64168: spi: sprd: fix error pointer deref after DMA setup failure

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-07-19T15:40:52.741Z
- Modified: 2026-08-13T15:31:42.170Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

spi: sprd: fix error pointer deref after DMA setup failure

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

Make sure to check the dma.enabled flag before trying to release the DMA
channels also on late probe errors to avoid dereferencing an error
pointer (or attempting to release a channel a second time).

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

(As written by CVE List.)

## Affected

- Linux Linux: from 386119bc7be9fa5114ced0274a22a943df890b4b before be74e276111f3c23b8e040c8c5e308f67a573add; from 386119bc7be9fa5114ced0274a22a943df890b4b before a8f233fb0c7be29b97cd249f64120bf35ce72805; from 386119bc7be9fa5114ced0274a22a943df890b4b before 0cdea166c1a07c200caf9d0b722224fca43b23ae; from 386119bc7be9fa5114ced0274a22a943df890b4b before 450c319dd04d0eeff4184889768f7ada826a2e35; from 386119bc7be9fa5114ced0274a22a943df890b4b before b6f1acf4e57ccf708cdc0cb70f5bb5b65162963b; from 386119bc7be9fa5114ced0274a22a943df890b4b before be409d2bbe9ca7da7b05cc7dde7499bc481f0766; from 386119bc7be9fa5114ced0274a22a943df890b4b before c33b4496e95d04722055446c0a31213639438536; from 386119bc7be9fa5114ced0274a22a943df890b4b before 3d67fffb74267772d461c02c67f1eff893ad547d; 5.1 (not affected: before 5.1; 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 5.1 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/be74e276111f3c23b8e040c8c5e308f67a573add> (patch)
- <https://git.kernel.org/stable/c/a8f233fb0c7be29b97cd249f64120bf35ce72805> (patch)
- <https://git.kernel.org/stable/c/0cdea166c1a07c200caf9d0b722224fca43b23ae> (patch)
- <https://git.kernel.org/stable/c/450c319dd04d0eeff4184889768f7ada826a2e35> (patch)
- <https://git.kernel.org/stable/c/b6f1acf4e57ccf708cdc0cb70f5bb5b65162963b> (patch)
- <https://git.kernel.org/stable/c/be409d2bbe9ca7da7b05cc7dde7499bc481f0766> (patch)
- <https://git.kernel.org/stable/c/c33b4496e95d04722055446c0a31213639438536> (patch)
- <https://git.kernel.org/stable/c/3d67fffb74267772d461c02c67f1eff893ad547d> (patch)

## Sources

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

---

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