Skip to main content

Linux Kernel EUVDEUVD-2026-25219

| CVE-2026-31532 HIGH
Use After Free (CWE-416)
2026-04-23 Linux GHSA-7w6x-pfmg-76xx
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Obtain local user access
  2. Delivery
    Create CAN raw socket
  3. Exploit
    Register receive filters
  4. Install
    Generate CAN traffic
  5. C2
    Close socket during packet reception
  6. Execute
    Trigger use-after-free in ro->uniq
  7. Impact
    Corrupt kernel memory structures
  8. Step 8
    Execute arbitrary kernel code
  9. Step 9
    Escalate to root privileges

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 (PR:L per CVSS vector) to a Linux system with CAN (Controller Area Network) kernel support enabled via CONFIG_CAN and CONFIG_CAN_RAW configuration options. The can-raw.ko module must be loaded or compiled into the kernel. Attacker must have sufficient privileges to create raw CAN sockets, typically requiring CAP_NET_RAW capability or membership in groups with CAN device access permissions. Exploitation requires winning a race condition between socket closure (raw_release) and packet reception (raw_rcv), meaning active CAN bus traffic or attacker ability to generate CAN frames increases success probability. Systems without CAN hardware interfaces or CAN kernel modules loaded are not exploitable regardless of kernel version. User interaction is not required (UI:N). The vulnerability is local-only (AV:L) and cannot be exploited remotely without existing local access or chained with a remote code execution vulnerability.

Impact

Real-world risk assessment shows mixed signals requiring careful interpretation. CVSS 7.8 (High) reflects local attack vector with low complexity and low privileges required, indicating exploitation is technically straightforward once local access is obtained. However, the EPSS score of 0.02% (5th percentile) suggests extremely low likelihood of widespread exploitation in practice. No CISA KEV listing confirms this is not being actively exploited in the wild. The vulnerability requires local authenticated access (PR:L) and affects CAN socket functionality specifically, limiting the attack surface to systems with CAN hardware interfaces or loaded CAN kernel modules - primarily industrial control systems, automotive ECUs, and specialized embedded environments rather than general-purpose servers or desktops. The use-after-free primitive can lead to high impact (C:H/I:H/A:H) including arbitrary code execution at kernel privilege level, but exploitation requires winning a race condition and precise heap manipulation. Patches are available across multiple stable kernel branches (6.12.83, 6.18.24, 6.19.14, 7.0.1), indicating vendor responsiveness. Priority should focus on patching CAN-enabled industrial/automotive systems with local user access, while standard enterprise Linux deployments without CAN functionality face negligible risk. The low EPSS score aligns with the specialized nature of affected systems rather than indicating low severity - for affected environments, this is a legitimate kernel privilege escalation vector.

Exploit ScenarioDerived

A local attacker with standard user privileges on an industrial control system running vulnerable Linux kernel with CAN interface support opens a CAN raw socket, establishes receive filters, and initiates socket closure while simultaneously triggering packet reception. By carefully timing the socket release to coincide with incoming CAN frames, the attacker triggers raw_rcv() to access the freed ro->uniq percpu storage after raw_release() deallocates it. Through heap manipulation techniques, the attacker replaces the freed memory with controlled data structures, achieving arbitrary kernel memory corruption. This can be leveraged into full kernel code execution and privilege escalation to root. Publicly available exploit code exists demonstrating the race condition, though successful exploitation requires precise timing and knowledge of kernel memory layout.

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 27, 2026

Use-after-free in Linux kernel CAN raw socket implementation allows local authenticated attackers to corrupt memory and potentially achieve code execution. The vulnerability stems from premature deallocation of percpu uniq storage in raw_release() while raw_rcv() may still access it via deferred RCU callbacks. Patches available for kernel versions 6.12.83, 6.18.24, 6.19.14, and 7.0.1. EPSS exploitation probability remains low (0.02%, 5th percentile) with no active exploitation confirmed at time of analysis.

RemediationAI

Upgrade to patched Linux kernel versions: 6.12.83, 6.18.24, 6.19.14, or 7.0.1 and later within respective stable branches. Patch commits are available at kernel.org stable tree (https://git.kernel.org/stable/c/572f0bf536ebc14f6e7da3d21a85cf076de8358e for 6.12 branch, https://git.kernel.org/stable/c/1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0 for 6.18, https://git.kernel.org/stable/c/7201a531b9a5ed892bfda5ded9194ef622de8ffa for 6.19, https://git.kernel.org/stable/c/34c1741254ff972e8375faf176678a248826fe3a for 7.0). If immediate patching is not feasible for CAN-enabled systems, disable CAN raw socket support by blacklisting the can-raw kernel module (echo 'blacklist can-raw' >> /etc/modprobe.d/blacklist.conf and unload with rmmod can-raw). This prevents userspace from creating vulnerable raw CAN sockets but breaks legitimate CAN applications relying on raw socket access. Alternatively, restrict access to CAN socket creation via AppArmor or SELinux policies limiting CAP_NET_RAW capability to trusted processes only, though this does not eliminate the vulnerability for authorized CAN applications. For non-CAN systems (verify with lsmod | grep can), risk is negligible and this becomes low-priority patch scheduling.

Affected VersionsENISA

Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <7201a531b9a5ed892bfda5ded9194ef622de8ffa
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <572f0bf536ebc14f6e7da3d21a85cf076de8358e
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <34c1741254ff972e8375faf176678a248826fe3a
Linux patch: 6.12.83
Linux 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <1a0f2de81f7fbdc538fc72d7d74609b79bc83cc0
Linux patch: 6.18.24
Linux patch: 6.19.14
Linux patch: 7.0.1

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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 Controller Area Network (CAN) raw socket implementation in the Linux kernel networking stack. CAN is an embedded system protocol used extensively in automotive and industrial control systems. The flaw involves improper synchronization between socket cleanup (raw_release) and packet reception (raw_rcv). The raw socket code uses Read-Copy-Update (RCU) for lock-free access to receiver filters, and percpu variables for performance optimization. When raw_release() calls can_rx_unregister() to remove receive filters, the actual deletion is deferred via call_rcu(), but the original code immediately freed the ro->uniq percpu storage with free_percpu(). This creates a race condition where raw_rcv() running in an RCU read-side critical section can access freed memory. The fix moves free_percpu() into a socket destructor (sk_destruct), ensuring the percpu area persists until all RCU callbacks drain. This vulnerability represents a classic time-of-check-time-of-use (TOCTOU) race in resource lifecycle management within a concurrent system.

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 7.0 HIGH

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
Patch released
Apr 29, 2026 - 15:26 nvd
Patch available
CVSS changed
Apr 27, 2026 - 15:22 NVD
7.8 (HIGH)
Patch available
Apr 23, 2026 - 13:16 EUVD
CVE Published
Apr 23, 2026 - 11:12 nvd
HIGH 7.8

DescriptionNVD

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

can: raw: fix ro->uniq use-after-free in raw_rcv()

raw_release() unregisters raw CAN receive filters via can_rx_unregister(), but receiver deletion is deferred with call_rcu(). This leaves a window where raw_rcv() may still be running in an RCU read-side critical section after raw_release() frees ro->uniq, leading to a use-after-free of the percpu uniq storage.

Move free_percpu(ro->uniq) out of raw_release() and into a raw-specific socket destructor. can_rx_unregister() takes an extra reference to the socket and only drops it from the RCU callback, so freeing uniq from sk_destruct ensures the percpu area is not released until the relevant callbacks have drained.

[mkl: applied manually]

Executive ViewAI

Why It Matters

CVE-2026-31532 is a use-after-free vulnerability in the Linux kernel CAN socket implementation that allows local authenticated users to corrupt memory and potentially execute code. Organizations running affected kernel versions face elevated risk if users with local system access are not fully trusted, requiring immediate patching to prevent potential lateral movement or privilege escalation.

Business Impact: Medium
Compensating Controls

Apply vendor patch. Interim mitigation: restrict local user access to CAN raw sockets via AppArmor/SELinux policies; disable CAN subsystem on systems where not required; monitor dmesg for use-after-free kernel warnings.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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