All reports
Low

kernel: spi: fix statistics allocation

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-23475

Probability of exploitation in the next 30 days: 0.13%

FIRST EPSS · 2026-11-19

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).

A flaw was found in the Linux kernel's Serial Peripheral Interface (SPI) component. The system's per-CPU statistics for the SPI controller were not allocated until after the controller was registered. This created a window where a local user or process could access system files (sysfs attributes) related to the SPI controller, leading to a NULL-pointer dereference. This vulnerability can cause a system crash, resulting in a Denial of Service (DoS).