Description
In the Linux kernel, the following vulnerability has been resolved:

spi: fix use-after-free on controller registration failure

Make sure to deregister from driver core also in the unlikely event that
per-cpu statistics allocation fails during controller registration to
avoid use-after-free (of driver resources) and unclocked register
accesses.
Published: 2026-04-03
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Local Privilege Escalation (Use-Af…ter-Free)
Action: Patch Update
AI Analysis

Impact

The vulnerability is a use‑after‑free condition in the Linux kernel’s SPI controller registration path. When per‑CPU statistics allocation fails, the kernel does not deregister the driver correctly, leaving freed driver resources that can still be accessed. Failure to clean up in this unlikely scenario can lead to an attacker executing arbitrary code inside the kernel or causing a crash. The weakness is formally classified as CWE‑825.

Affected Systems

All Linux kernel implementations that include the affected SPI registration code are vulnerable. The flaw exists in the mainline kernel source that was current when the fix was made. No specific downstream distribution or kernel release list is supplied, so any system running an unpatched kernel before the commit that introduced the removal of this bug is at risk.

Risk and Exploitability

The CVSS rating of 7.8 indicates a high severity, and the EPSS value of less than 1 % suggests that exploitation is unlikely in the wild. The defect is not listed in CISA’s KEV catalog. A successful exploitation would require local kernel access or the ability to trigger the controller registration failure, which is an inferred local attack vector; remote exploitation is not documented.

Generated by OpenCVE AI on April 28, 2026 at 16:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a release that includes the SPI controller use‑after‑free fix.
  • Ensure that all modules interacting with the SPI controller are compiled for the new kernel or are replaced with updated versions that include the fix.
  • If an immediate kernel update is not available, restrict SPI controller use by disabling unnecessary devices at boot or using device tree overrides to avoid dynamic registration.

Generated by OpenCVE AI on April 28, 2026 at 16:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 27 Apr 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

cvssV3_1

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


Tue, 07 Apr 2026 08:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 04 Apr 2026 01:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Fri, 03 Apr 2026 21:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Fri, 03 Apr 2026 16:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: spi: fix use-after-free on controller registration failure Make sure to deregister from driver core also in the unlikely event that per-cpu statistics allocation fails during controller registration to avoid use-after-free (of driver resources) and unclocked register accesses.
Title spi: fix use-after-free on controller registration failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-04-27T14:02:41.755Z

Reserved: 2026-03-09T15:48:24.084Z

Link: CVE-2026-31389

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-04-03T16:16:36.823

Modified: 2026-04-27T14:16:35.207

Link: CVE-2026-31389

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-04-03T00:00:00Z

Links: CVE-2026-31389 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-28T16:45:06Z

Weaknesses