Skip to main content

Linux Kernel CVE-2026-31541

| EUVDEUVD-2026-25434 HIGH
Use After Free (CWE-416)
2026-04-24 Linux GHSA-mfcj-fwjx-5q54
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Gain local shell access with low privileges
  2. Delivery
    Access kernel tracing filesystem (/sys/kernel/tracing)
  3. Exploit
    Create tracing instance with copy_trace_marker enabled
  4. Execution
    Trigger race condition by deleting instance during concurrent trace_marker write
  5. Persist
    Exploit use-after-free to corrupt kernel memory
  6. Impact
    Execute arbitrary code as root

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

Local authenticated access to Linux system with low privileges (PR:L) sufficient to access kernel tracing interfaces at /sys/kernel/tracing or /sys/kernel/debug/tracing. System must have kernel compiled with CONFIG_TRACING and CONFIG_TRACER enabled (default in most distributions) and tracing filesystems (tracefs/debugfs) must be mounted and accessible to the attacker's user context. Most production systems restrict debugfs/tracefs to root-only access by default, limiting exposure. Exploitation further requires ability to create and delete tracing instances, enable copy_trace_marker option, and write to trace_marker file - operations typically restricted to CAP_SYS_ADMIN capability or root. Vulnerable kernel version 6.16 through 6.18.19, 6.19.0-6.19.9, or pre-7.0 development versions must be running. Technical complexity is low (AC:L) for triggering the race condition once access prerequisites are met, but converting UAF to reliable code execution requires kernel exploitation expertise. No user interaction required (UI:N) beyond attacker's direct system access.

Impact

Real-world risk is moderate despite CVSS 7.8 (High). CVSS vector AV:L/AC:L/PR:L indicates local access with low privileges required but low attack complexity, while high confidentiality/integrity/availability impact reflects kernel-level memory corruption consequences including potential privilege escalation to root. However, multiple limiting factors reduce practical risk: exploitation requires local authenticated access to a system with accessible kernel tracing facilities (typically restricted to root or debugfs access in production), specific kernel configuration enabling tracing instances, and technical sophistication to trigger the race condition and exploit UAF for code execution rather than just crash. EPSS 0.02% (4th percentile) confirms minimal observed exploitation activity, suggesting limited attacker interest or opportunity. No CISA KEV listing and no public POC identified indicate no confirmed active exploitation or weaponized exploits. For most production systems with restricted debugfs/tracefs access, this represents lower priority than network-accessible vulnerabilities. Highest risk exists in development/debugging environments, containers with elevated privileges, or systems where non-root users have tracing access.

Exploit ScenarioDerived

Local attacker with low-privilege shell access on a Linux system with accessible kernel tracing facilities creates multiple tracing instances and enables copy_trace_marker option to add instances to the marker_copies RCU list. Attacker then rapidly deletes instances while simultaneously triggering trace_marker writes from another thread to create a race condition where RCU readers traverse the list during instance deletion. Due to missing synchronize_rcu() call, the freed trace_array descriptor remains accessible to concurrent readers, allowing attacker to corrupt kernel memory. With precise timing and heap manipulation techniques, attacker converts use-after-free into arbitrary kernel code execution, escalating privileges to root or causing denial of service through kernel panic.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
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 tracing subsystem allows local authenticated attackers to achieve arbitrary code execution, privilege escalation, or denial of service. The vulnerability occurs when deleting tracing instances with copy_trace_marker enabled, where improper RCU synchronization leaves freed memory accessible. Exploitation requires local access with low privileges to manipulate kernel tracing facilities. EPSS score of 0.02% (4th percentile) indicates low observed exploitation probability. Vendor patches available across multiple stable kernel versions (6.18.20, 6.19.10, 7.0).

RemediationAI

Upgrade to patched Linux kernel versions: 6.18.20 or later for 6.18.x series, 6.19.10 or later for 6.19.x series, or 7.0 or later for 7.x series. Patches available from kernel.org stable repositories at https://git.kernel.org/stable/c/75668e58244e63ec3785098a02e1cdcff14a6c2e (6.18 series), https://git.kernel.org/stable/c/cc267e4b4302247dc67ef937a9ac587a696a43c1 (6.19 series), and https://git.kernel.org/stable/c/07183aac4a6828e474f00b37c9d795d0d99e18a7 (mainline). If immediate patching is not feasible, restrict access to /sys/kernel/tracing and /sys/kernel/debug/tracing filesystems by ensuring only root can mount or access debugfs/tracefs (default in most distributions). Use mount options like 'mode=0700' for debugfs to prevent non-root access. In containerized environments, avoid mounting debugfs/tracefs into containers or use security profiles (AppArmor, SELinux) to block tracing syscalls. Note that restricting tracing access may impact debugging workflows and performance monitoring tools relying on kernel tracing infrastructure. Verify access restrictions with 'ls -la /sys/kernel/debug' and check container security contexts.

Affected VersionsENISA

Linux patch: 7.0
Linux 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86 <07183aac4a6828e474f00b37c9d795d0d99e18a7
Linux patch: 6.18.20
Linux patch: 0
Linux 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86 <75668e58244e63ec3785098a02e1cdcff14a6c2e
Linux 6.16
Linux 7b382efd5e8af4c0c67e70ad3fb599dcd2dc0b86 <cc267e4b4302247dc67ef937a9ac587a696a43c1
Linux patch: 6.19.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

The Linux kernel tracing subsystem provides the trace_marker interface at /sys/kernel/tracing/trace_marker, which supports copying writes to multiple tracing instance buffers when copy_trace_marker is enabled. The affected code manages instance trace_array descriptors in an RCU-protected linked list (marker_copies). RCU (Read-Copy-Update) is a Linux kernel synchronization mechanism requiring proper synchronize_rcu() calls when removing list elements to ensure all readers complete before memory is freed. The vulnerability is a classic CWE-416 use-after-free race condition: when an instance is deleted, flags are cleared first, then update_marker_trace() is called which returns false (no state change) because the flag was already cleared, bypassing the required synchronize_rcu() call. This leaves a window where RCU readers may still traverse the list and access the trace_array descriptor after it's freed, causing memory corruption. The fix reorders operations so update_marker_trace() sees the actual state transition and properly invokes RCU synchronization before memory deallocation.

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

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 - 18:52 NVD
7.8 (HIGH)
Patch released
Apr 28, 2026 - 18:50 nvd
Patch available
Patch available
Apr 24, 2026 - 16:01 EUVD
CVE Published
Apr 24, 2026 - 14:33 nvd
HIGH 7.8

DescriptionNVD

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

tracing: Fix trace_marker copy link list updates

When the "copy_trace_marker" option is enabled for an instance, anything written into /sys/kernel/tracing/trace_marker is also copied into that instances buffer. When the option is set, that instance's trace_array descriptor is added to the marker_copies link list. This list is protected by RCU, as all iterations uses an RCU protected list traversal.

When the instance is deleted, all the flags that were enabled are cleared. This also clears the copy_trace_marker flag and removes the trace_array descriptor from the list.

The issue is after the flags are called, a direct call to update_marker_trace() is performed to clear the flag. This function returns true if the state of the flag changed and false otherwise. If it returns true here, synchronize_rcu() is called to make sure all readers see that its removed from the list.

But since the flag was already cleared, the state does not change and the synchronization is never called, leaving a possible UAF bug.

Move the clearing of all flags below the updating of the copy_trace_marker option which then makes sure the synchronization is performed.

Also use the flag for checking the state in update_marker_trace() instead of looking at if the list is empty.

Executive ViewAI

Why It Matters

CVE-2026-31541 is a use-after-free vulnerability in the Linux kernel tracing subsystem that permits local authenticated users to execute arbitrary code or escalate privileges. Organizations running affected Linux kernels without current patches face risk of privilege escalation and system compromise by low-privileged local users, particularly in multi-tenant or shared-access environments.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible, implement kernel module loading restrictions via modprobe blacklist, disable kernel tracing subsystem via sysctl (kernel.ftrace_enabled=0), and restrict local user access to /sys/kernel/tracing/ directory through filesystem permissions (mode 0700) and SELinux/AppArmor policies limiting non-root tracing facility access.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Data Quality
6 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 No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
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

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