CVE-2026-31487·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: spi: use generic driver_override infrastructure When a driver is probed through __driver_attach(), the bus' match() callback is called without the device lock held, thus accessing the driver_override field without a lock, which can cause a UAF. Fix this by using the driver-core driver_override infrastructure taking care of proper locking internally. Note that calling match() from __driver_attach() without the device lock held is intentional. [1] Also note that we do not enable the driver_override feature of struct bus_type, as SPI - in contrast to most other buses - passes "" to sysfs_emit() when the driver_override pointer is NULL. Thus, printing "\n" instead of "(null)\n".
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.19.11
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.12% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 6.19.11
Fixed in: 6.19.11
How to fix this CVE
Update your Linux kernel to version 6.19.11 or later to resolve a use-after-free vulnerability in the SPI subsystem's driver binding logic. This flaw occurs when the kernel accesses the driver_override field without proper synchronization during device probing, potentially causing kernel crashes or memory corruption. Apply the kernel update through your distribution's package manager and reboot your system to complete remediation.
sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version and verify it is 6.19.x
- Check if SPI devices are present on your system with 'lsmod | grep spi' to determine if the vulnerable code path is loaded
- Search kernel logs for SPI-related errors using 'dmesg | grep -i spi' or 'journalctl -k | grep -i spi' to identify any exploitation attempts or crashes
- After applying the patch, run 'uname -r' again and confirm the kernel version is 6.19.11 or higher
FAQ
What is CVE-2026-31487?
CVE-2026-31487 is a use-after-free vulnerability in the Linux kernel's SPI subsystem where the driver_override field is accessed without proper locking during device probing, potentially leading to kernel crashes or memory corruption.
Is CVE-2026-31487 being actively exploited?
No, CVE-2026-31487 is not currently listed on the CISA Known Exploited Vulnerabilities catalog and no public exploits are available. However, it should still be patched promptly as a medium-severity vulnerability.
What versions of Kernel are affected by CVE-2026-31487?
Linux kernel versions 6.19 through 6.19.10 are affected. The vulnerability is resolved in kernel version 6.19.11 and later.
How do I check if my server is vulnerable to CVE-2026-31487?
Run 'uname -r' and check if your kernel version falls within 6.19 to 6.19.10 range. If it does and SPI modules are loaded (verify with 'lsmod | grep spi'), your system is vulnerable.
Does Defensia detect CVE-2026-31487?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-31487 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/6e8eb467bed6aa1a563dba8f366c9fd76ba0004e
- https://git.kernel.org/stable/c/c73a58661a760373d08a6883af4f0bb5cc991a67
- https://git.kernel.org/stable/c/cc34d77dd48708d810c12bfd6f5bf03304f6c824
- https://git.kernel.org/stable/c/e0ae367a2de06c49aa1de6ec9b1ab6860bbb2cf0
- https://git.kernel.org/stable/c/eedf220442d13b6d97294e5b0ac8a2c38ee1a1a0
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31487. Free for 1 server.
Get started free