Linux kernel SPI controller use-after-free on registration failure
CVE-2026-31389High
The Linux kernel's SPI subsystem fails to properly deregister a controller from the driver core when per-CPU statistics allocation fails during controller registration. This leaves the controller registered whilst its resources are freed, leading to use-after-free conditions and unclocked register accesses. An attacker with the ability to trigger SPI controller registration with insufficient memory could exploit this to cause a kernel crash or potentially execute code.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Detail
Affected versions
- linux linux kernel: from 6.0, before 6.1.167
- linux linux kernel: from 6.2, before 6.6.130
- linux linux kernel: from 6.7, before 6.12.78
- linux linux kernel: from 6.13, before 6.18.20
- linux linux kernel: from 6.19, before 6.19.10
- linux linux kernel: 7.0
Reports naming this CVE1 in total
· All CISA Advisories
Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP (opens in a new tab)