CVE-2026-31487
Last modified
CVE-2026-31487 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.09% chance of exploitation in the next 30 days.
Description
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".
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 4.20.1, < 6.12.80 | — |
| Linux | Linux Kernel | >= 6.13, < 6.18.21 | — |
| Linux | Linux Kernel | >= 6.19, < 6.19.11 | — |
| Linux | Linux Kernel | 4.20 | — |
| Linux | Linux Kernel | 7.0 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-31487?
How severe is CVE-2026-31487?
How do I fix CVE-2026-31487?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-31481In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31482In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31483In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31484In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2026-31485In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-31486In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2026-31488In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-31489In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-3149A weakness has been identified in itsourcecode College Manag…8.8
- CVE-2026-31490In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-31491In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31492In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2026-31487?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
