CVE Database›CVE-2026-31389

CVE-2026-31389

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

Loading…

Severity

Moderate

Red Hat Product Security

4.7

CVSS 3.1

Review impact separately from score.

Published · April 3, 2026

Updated · June 30, 2026

Description

A flaw was found in the Linux kernel's Serial Peripheral Interface (SPI) subsystem. During controller registration, a use-after-free vulnerability can occur if the allocation of per-CPU statistics fails. This could allow a local attacker to cause system instability or a denial of service by accessing freed memory.

Statement

This vulnerability occurs only during an unlikely error path when per-CPU statistics allocation fails during SPI controller registration. Under normal system operation with adequate memory, this path is not exercised. The practical exploitability is very limited as it requires triggering a specific allocation failure during driver initialization.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 4.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-825 · Expired Pointer Dereference