Skip to main content

Linux Kernel EUVDEUVD-2026-24849

| CVE-2026-31485 HIGH
Use After Free (CWE-416)
2026-04-22 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-355q-5chg-4qpr
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain local shell access
  2. Delivery
    Obtain SPI device permissions
  3. Exploit
    Initiate SPI transfer via ioctl
  4. Install
    Trigger driver unload (rmmod)
  5. C2
    Race condition in DMA teardown
  6. Execute
    Use-after-free NULL dereference
  7. Impact
    Kernel panic (DoS) or potential code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires local authenticated access with sufficient privileges to open SPI device nodes (/dev/spidev* - typically requires membership in 'spi' group or root) and ability to unload kernel modules (CAP_SYS_MODULE capability or root access). Exploitation specifically targets systems using Freescale/NXP LPSPI controller hardware (common in i.MX SoC family found in embedded ARM devices). Attacker must trigger precise race condition by initiating SPI transfer operations via spidev ioctl() interface while simultaneously forcing driver removal through rmmod or sysfs device unbinding. Not exploitable remotely - network access alone is insufficient. Not exploitable from unprivileged user contexts without existing local access and elevated permissions. Most restrictive deployment configurations that disable module unloading (modules_disabled=1 sysctl) or restrict /dev/spidev access prevent exploitation. Attack surface primarily exists in development/debug embedded systems with relaxed permission models, or in post-compromise scenarios where attacker has already achieved local code execution.

Impact

Real-world risk is moderate to low despite CVSS base score of 7.8. The vulnerability requires local access with low privileges (CVSS AV:L/PR:L), significantly limiting remote attack scenarios. EPSS score of 0.02% (7th percentile) indicates extremely low likelihood of exploitation in the wild, and CISA KEV does not list this CVE, confirming no observed active exploitation. Attack complexity is low (AC:L) once local access is obtained, and the impact scope includes high confidentiality, integrity, and availability compromise (C:H/I:H/A:H) if code execution is achieved, though denial of service is the more probable outcome. The vulnerability primarily affects embedded Linux deployments where attackers already have local shell access and can trigger SPI operations during driver unload - a narrow attack surface. Patch availability across all maintained kernel branches (5.10 LTS through 7.0 mainline) significantly reduces risk for systems following normal update cycles. Organizations running unmaintained kernel versions (pre-5.10) or custom embedded builds with delayed patching face elevated risk. The presence of multiple stable kernel patches with specific commit hashes allows verification of fix deployment. Key risk factors favoring lower priority: local-only attack vector, no public POC, no KEV listing, very low EPSS, and widespread patch availability. Risk increases for: embedded systems with extended patch cycles, devices exposed via physical access or compromised application layers, and systems where local users can load/unload kernel modules.

Exploit ScenarioDerived

An attacker with local shell access on an embedded Linux device (e.g., compromised IoT gateway running vulnerable i.MX-based firmware) initiates an SPI transaction via /dev/spidev interface using a crafted ioctl call. While the SPI transfer is in progress, the attacker triggers kernel module unload of spi_fsl_lpspi (rmmod spi_fsl_lpspi) or forces device unbind via sysfs. The driver's fsl_lpspi_remove() function tears down DMA channels while the transfer callback is still queued, causing a NULL pointer dereference when fsl_lpspi_dma_transfer() accesses freed memory structures. System crashes with kernel panic, resulting in denial of service. In theoretical scenarios with precise timing and memory layout control, the use-after-free could potentially be leveraged for arbitrary kernel code execution to escalate privileges, though denial of service is the documented and most likely outcome. No public proof-of-concept exploit exists at time of analysis.

Act Now Prioritize within 24-48h. Why: Active threat signals + CRITICAL/HIGH severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 28, 2026

Use-after-free in Linux kernel SPI subsystem (fsl_lpspi driver) causes NULL pointer dereference when DMA channels are torn down while SPI transfers are active. Local attackers with low privileges can trigger denial of service or potentially execute arbitrary code on affected systems running Linux kernel versions from 4.10 through 7.0-rc2, particularly impacting embedded and IoT devices using Freescale LPSPI controllers. EPSS score of 0.02% indicates very low observed exploitation probability, and no public exploit code or active exploitation has been identified at time of analysis. Vendor-released patches available across all affected stable kernel branches (5.10.253, 5.15.203, 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11, 7.0).

RemediationAI

Upgrade to patched Linux kernel versions: 5.10.253+ for 5.10.x LTS branch, 5.15.203+ for 5.15.x LTS, 6.1.168+ for 6.1.x LTS, 6.6.131+ for 6.6.x stable, 6.12.80+ for 6.12.x, 6.18.21+ for 6.18.x, 6.19.11+ for 6.19.x, or 7.0 final release for mainline. Patches available at https://git.kernel.org/stable/c/b341c1176f2e001b3adf0b47154fc31589f7410e (mainline fix) and branch-specific commits referenced in NVD links. The fix replaces devm_spi_register_controller() with explicit spi_register_controller()/spi_unregister_controller() calls to ensure proper teardown ordering. For systems unable to upgrade immediately, implement compensating controls: restrict module unload permissions (disable non-root rmmod via kernel.modules_disabled sysctl), minimize local user access to SPI device nodes (/dev/spidev*), and avoid SPI operations during system shutdown/reboot sequences. Note that blocking module unload may complicate system maintenance and debugging. Monitor kernel logs for 'I/O Error in DMA RX' messages from fsl_lpspi driver as potential exploitation indicators. Enterprise distributions (RHEL, Ubuntu, SUSE) will incorporate fixes into their kernel update streams - consult vendor security advisories for distribution-specific patch versions.

Affected VersionsENISA

Linux patch: 0
Linux patch: 7.0
Linux 5314987de5e5f5e38436ef4a69328bc472bbd63e <adb25339b66112393fd6892ceff926765feb5b86
Linux patch: 5.15.203
Linux 5314987de5e5f5e38436ef4a69328bc472bbd63e <d5d01f24bc6fbde40b4e567ef9160194b61267bc
Linux patch: 5.10.253
Linux 5314987de5e5f5e38436ef4a69328bc472bbd63e <e89e2b97253c124d37bf88e96e5e8ce5c3aeeec3
Linux 5314987de5e5f5e38436ef4a69328bc472bbd63e <15650dfbaeeb14bcaaf053b93cf631db8d465300
Linux patch: 6.19.11
Linux patch: 6.18.21
Linux 5314987de5e5f5e38436ef4a69328bc472bbd63e <fbe6f40caeebb0b1ea9dfedc259124c1d3cda7a6
Linux 5314987de5e5f5e38436ef4a69328bc472bbd63e <e3fd54f8b0317fbccc103961ddd660f2a32dcf0b
Linux 5314987de5e5f5e38436ef4a69328bc472bbd63e <ca4483f36ac1b62e69f8b182c5b8f059e0abecfb
Linux patch: 6.1.168
Linux patch: 6.12.80
Linux patch: 6.6.131
Linux 5314987de5e5f5e38436ef4a69328bc472bbd63e <b341c1176f2e001b3adf0b47154fc31589f7410e
Linux 4.10

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This vulnerability affects the fsl_lpspi SPI controller driver in the Linux kernel, specifically the Direct Memory Access (DMA) teardown logic. The root cause is CWE-416 (Use After Free) stemming from incorrect resource lifecycle management. The driver uses devm_spi_register_controller() for device-managed registration, which defers SPI controller unregistration until after the driver's remove() function completes. However, fsl_lpspi_remove() synchronously releases DMA channels before the controller is unregistered, creating a race condition. If an SPI transfer is in progress during module removal (via spidev IOCTL or other kernel SPI operations), the DMA callback references freed memory, triggering a NULL pointer dereference in fsl_lpspi_dma_transfer(). The vulnerability exists in kernel versions from 4.10 (when the driver was introduced via commit 5314987de5e5) through 7.0-rc2, affecting ARM-based embedded systems using NXP/Freescale Low Power SPI peripherals common in automotive, industrial, and IoT applications.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 5.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
CVSS changed
Apr 28, 2026 - 13:22 NVD
7.8 (HIGH)
Patch released
Apr 28, 2026 - 13:12 nvd
Patch available
Patch available
Apr 22, 2026 - 16:33 EUVD
CVE Published
Apr 22, 2026 - 14:16 nvd
HIGH 7.8

DescriptionNVD

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

spi: spi-fsl-lpspi: fix teardown order issue (UAF)

There is a teardown order issue in the driver. The SPI controller is registered using devm_spi_register_controller(), which delays unregistration of the SPI controller until after the fsl_lpspi_remove() function returns.

As the fsl_lpspi_remove() function synchronously tears down the DMA channels, a running SPI transfer triggers the following NULL pointer dereference due to use after free:

| fsl_lpspi 42550000.spi: I/O Error in DMA RX | Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 [...]

| Call trace: | fsl_lpspi_dma_transfer+0x260/0x340 [spi_fsl_lpspi] | fsl_lpspi_transfer_one+0x198/0x448 [spi_fsl_lpspi] | spi_transfer_one_message+0x49c/0x7c8 | __spi_pump_transfer_message+0x120/0x420 | __spi_sync+0x2c4/0x520 | spi_sync+0x34/0x60 | spidev_message+0x20c/0x378 [spidev] | spidev_ioctl+0x398/0x750 [spidev] [...]

Switch from devm_spi_register_controller() to spi_register_controller() in fsl_lpspi_probe() and add the corresponding spi_unregister_controller() in fsl_lpspi_remove().

Executive ViewAI

Why It Matters

A use-after-free vulnerability in the Linux kernel SPI subsystem (fsl_lpspi driver) affects versions 4.10 through 7.0-rc2, creating potential denial-of-service and arbitrary code execution risks for organizations operating embedded systems and IoT devices with Freescale LPSPI controllers. While exploitation probability is assessed at 0.02%, the vulnerability requires local access with low privileges, making it a concern primarily for systems with untrusted user access or compromised endpoints. Patching is critical for production embedded/IoT deployments, particularly in environments where kernel isolation cannot be guaranteed.

Business Impact: Medium
Compensating Controls

If immediate patching is not feasible: (1) Restrict local user access via SELinux/AppArmor policies to prevent unprivileged user execution; (2) Disable the fsl_lpspi kernel module on systems where SPI functionality is not required; (3) Isolate affected IoT/embedded devices to restricted network segments with monitored access; (4) Enable system auditing to detect suspicious local process behavior. Apply vendor patch when operationally feasible.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Threat Intel
2
1 source
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat Yes
Deciding rule
Active threat signals + CRITICAL/HIGH severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: +10
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

Threat IntelligenceMISP

CISA Advisories
Sources: CISA (public domain)

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy