# CVE-2026-23475: spi: fix statistics allocation

- 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.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-04-03T15:15:54.211Z
- Modified: 2026-11-10T13:18:48.943Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

spi: fix statistics allocation

The controller per-cpu statistics is not allocated until after the
controller has been registered with driver core, which leaves a window
where accessing the sysfs attributes can trigger a NULL-pointer
dereference.

Fix this by moving the statistics allocation to controller allocation
while tying its lifetime to that of the controller (rather than using
implicit devres).

(As written by CVE List.)

## Affected

- Linux Linux: from 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 before 80c5bd0dca1cc5526ae0f4b273ccd163ed4caa4e; from 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 before f13100b1f5f111989f0750540a795fdef47492af; from 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 before df30056c78e8bead02d4be020199cabdbec0fef1; from 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 before 378b295f67102eef78cf2c28105f60ae1dab5cc1; from 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 before 118ce777d39f03cac99231196f820e4f998613a8; from 6598b91b5ac32bc756d7c3000a31f775d4ead1c4 before dee0774bbb2abb172e9069ce5ffef579b12b3ae9; 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/80c5bd0dca1cc5526ae0f4b273ccd163ed4caa4e> (patch)
- <https://git.kernel.org/stable/c/f13100b1f5f111989f0750540a795fdef47492af> (patch)
- <https://git.kernel.org/stable/c/df30056c78e8bead02d4be020199cabdbec0fef1> (patch)
- <https://git.kernel.org/stable/c/378b295f67102eef78cf2c28105f60ae1dab5cc1> (patch)
- <https://git.kernel.org/stable/c/118ce777d39f03cac99231196f820e4f998613a8> (patch)
- <https://git.kernel.org/stable/c/dee0774bbb2abb172e9069ce5ffef579b12b3ae9> (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-23475](https://www.cve.org/CVERecord?id=CVE-2026-23475), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2026-23475](https://nvd.nist.gov/vuln/detail/CVE-2026-23475), Public domain, modified 2026-11-10

---

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