# CVE-2026-31389: spi: fix use-after-free on controller registration 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.18%, higher than 7% of CVEs (2026-12-02)
- Published: 2026-04-03T15:15:55.068Z
- Modified: 2026-11-10T13:18:50.243Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

spi: fix use-after-free on controller registration failure

Make sure to deregister from driver core also in the unlikely event that
per-cpu statistics allocation fails during controller registration to
avoid use-after-free (of driver resources) and unclocked register
accesses.

(As written by CVE List.)

## Affected

- Linux Linux: from 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 before 0e23f50086da7d0b183dfeac26021acfcdee086b; from 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 before 6bbd385b30c7fb6c7ee0669e9ada91490938c051; from 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 before afe27c1f43aa57530011f419be6ddf71306565d2; from 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 before 80f3e8cd2b4ad355b2ad2024cf423f6d183404f7; from 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 before 23b51bad2eb8787aa74324cfccefb258515ae5ba; from 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 before 8634e05b08ead636e926022f4a98416e13440df9; 6.0 (not affected: before 6.0; from 6.1.167 up to 6.1.*; from 6.6.130 up to 6.6.*; from 6.12.78 up to 6.12.*; from 6.18.20 up to 6.18.*; from 6.19.10 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.0 before 6.1.167; from 6.2 before 6.6.130; from 6.7 before 6.12.78; from 6.13 before 6.18.20; from 6.19 before 6.19.10; 7.0

## References

- <https://git.kernel.org/stable/c/0e23f50086da7d0b183dfeac26021acfcdee086b> (patch)
- <https://git.kernel.org/stable/c/6bbd385b30c7fb6c7ee0669e9ada91490938c051> (patch)
- <https://git.kernel.org/stable/c/afe27c1f43aa57530011f419be6ddf71306565d2> (patch)
- <https://git.kernel.org/stable/c/80f3e8cd2b4ad355b2ad2024cf423f6d183404f7> (patch)
- <https://git.kernel.org/stable/c/23b51bad2eb8787aa74324cfccefb258515ae5ba> (patch)
- <https://git.kernel.org/stable/c/8634e05b08ead636e926022f4a98416e13440df9> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

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

---

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