CVE-2026-23475

spi: fix statistics allocation

Published Apr 3, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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).

Analysis

AI-generated

Technical impact

The Linux kernel SPI driver does not allocate per‑CPU statistics until after a controller is registered. This creates a window in which reading driver sysfs entries can dereference a null pointer, causing an oops and a kernel crash. The weakness is a null pointer dereference (CWE‑476) and is fixed by allocating statistics at controller initialization.

Affected Systems

Any Linux kernel version that contains the pre‑fix SPI driver implementation is affected. The vendor record lists “Linux:Linux,” and the CPE identifiers cover all linux_kernel builds, so the vulnerability applies to all architectures running an unpatched kernel. The specific affected versions are not listed explicitly; based on the description, it is inferred that versions prior to the merge of commit 118ce777d39f03cac99231196f820e4f998613a8 are vulnerable.

Risk and Exploitability

With a CVSS score of 5.5 and an EPSS score of less than 1 %, the risk is moderate. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires local access to the sysfs interface, and a user can trigger a kernel panic by reading the driver attributes during the allocation window. There is no remote code execution risk, but a local attacker can cause a denial‑of‑service through a system crash.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the running kernel to a version that contains the SPI statistics allocation fix.
  • If an update is not immediately possible, restrict or remove read access to the SPI driver’s sysfs files by adjusting the file permissions or disabling the driver.
  • Monitor kernel logs for oops or panic messages related to the SPI driver to detect accidental exposure of the allocation window.

Generated by OpenCVE AI on May 20, 2026 at 17:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4561-1 linux-6.1 security update
Debian DSA Debian DSA DSA-6238-1 linux security update
Debian DSA Debian DSA DSA-6243-1 linux security update
Ubuntu USN Ubuntu USN USN-8567-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-1 Linux kernel (GCP FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-1 Linux kernel (Oracle) vulnerabilities
Ubuntu USN Ubuntu USN USN-8596-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-2 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8606-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8607-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8608-1 Linux kernel (Azure FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8609-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8574-3 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8595-3 Linux kernel (AWS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8619-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8665-1 Linux kernel (Raspberry Pi) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-476
CPEs cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-824
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low

Type Values Removed Values Added
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).
Title spi: fix statistics allocation
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-476

    NULL Pointer Dereference

  • CWE-824

    Access of Uninitialized Pointer

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 10, 2026, 12:43 PM
Reserved
Jan 13, 2026, 3:37 PM
Status
Modified
Published
Apr 3, 2026, 4:16 PM
Modified
Nov 10, 2026, 1:18 PM
Severity
Low
Public date
Apr 3, 2026, 12:00 AM