5.5medium
spi: fix statistics allocation
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.18% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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.* | CVE List |
| 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 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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).
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: spi: corregir la asignación de estadísticas Las estadísticas por CPU del controlador no se asignan hasta después de que el controlador ha sido registrado con el núcleo del controlador, lo que deja una ventana donde acceder a los atributos de sysfs puede desencadenar una desreferencia de puntero NULL. Esto se soluciona moviendo la asignación de estadísticas a la asignación del controlador, mientras se vincula su vida útil a la del controlador (en lugar de usar devres implícito).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23475 changed 2026-11-10 | CVE Terms of Use |
| NVD | CVE-2026-23475 changed 2026-11-10 | Public domain |