CVE-2026-23475 spi: fix statistics allocation
A NULL pointer dereference in the Linux kernel SPI driver allows local attackers to cause a denial of service via sysfs access.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-23475?
CVE-2026-23475 is a medium-severity vulnerability in Linux kernel, published on 3 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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).
Weakness: CWE-476
Which versions are affected by CVE-2026-23475?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2026-23475?
Apply the vendor's patch.
Is CVE-2026-23475 being exploited?
There is no known exploitation of CVE-2026-23475 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2026-23475, DEBIAN-CVE-2026-23475, GHSA-p23v-v2wc-73m3, ROOT-OS-DEBIAN-12-CVE-2026-23475, ROOT-OS-DEBIAN-13-CVE-2026-23475, ROOT-OS-UBUNTU-2404-CVE-2026-23475 and 1 more.