0.0
NA
CVE-2026-31389
spi: fix use-after-free on controller registration failure
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.

INFO

Published Date :

April 3, 2026, 4:16 p.m.

Last Modified :

April 3, 2026, 4:16 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-31389 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

Solution
Fix a use-after-free vulnerability in the Linux kernel related to SPI controller registration.
  • Apply the patch for SPI controller registration failure.
  • Ensure per-cpu statistics allocation succeeds.
  • Deregister driver resources on allocation failure.
  • Avoid unclocked register accesses.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-31389 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-31389 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-31389 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-31389 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Apr. 03, 2026

    Action Type Old Value New Value
    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.
    Added Reference https://git.kernel.org/stable/c/0e23f50086da7d0b183dfeac26021acfcdee086b
    Added Reference https://git.kernel.org/stable/c/23b51bad2eb8787aa74324cfccefb258515ae5ba
    Added Reference https://git.kernel.org/stable/c/6bbd385b30c7fb6c7ee0669e9ada91490938c051
    Added Reference https://git.kernel.org/stable/c/80f3e8cd2b4ad355b2ad2024cf423f6d183404f7
    Added Reference https://git.kernel.org/stable/c/8634e05b08ead636e926022f4a98416e13440df9
    Added Reference https://git.kernel.org/stable/c/afe27c1f43aa57530011f419be6ddf71306565d2
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.