Skip to main content

Linux Kernel CVE-2026-31516

| EUVDEUVD-2026-24900 HIGH
Race Condition (CWE-362)
2026-04-22 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-g967-c7qh-8q49
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

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

  1. Recon
    Obtain local shell access
  2. Delivery
    Create user namespace with CAP_NET_ADMIN
  3. Exploit
    Send XFRM_MSG_NEWSPDINFO netlink message
  4. Install
    Destroy namespace to free struct net
  5. C2
    Spray kernel heap with controlled data
  6. Execute
    Queued work callback dereferences controlled memory
  7. Impact
    Execute arbitrary kernel code
  8. Step 8
    Escalate to root privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: 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 CAP_NET_ADMIN capability within a user namespace, achievable by unprivileged users in systems allowing unprivileged user namespace creation (kernel.unprivileged_userns_clone=1, default on many distributions). Attacker must trigger XFRM netlink messages (XFRM_MSG_NEWSPDINFO) which requires the XFRM subsystem to be compiled into the kernel (CONFIG_XFRM=y, nearly universal) and the ability to create/destroy network namespaces. Exploitation window depends on winning the race between namespace teardown completing struct net deallocation and the system workqueue executing the queued callback xfrm_hash_rebuild(). Race probability increases in environments with high namespace churn rates such as container orchestration platforms, CI/CD runners creating ephemeral containers, or OpenStack/KVM environments with frequent network namespace operations. Does not affect systems where unprivileged user namespaces are disabled or where XFRM is not compiled (rare). User interaction not required (UI:N) once attacker has local shell access.

Impact

Real-world exploitation risk is moderate despite high CVSS score. The CVSS vector (AV:L/AC:L/PR:L/UI:N) indicates local access with low attack complexity and low privileges required, suggesting exploitation is technically feasible for authenticated local users. However, practical exploitation requires precise timing: an attacker must trigger XFRM_MSG_NEWSPDINFO to queue the work item, then force network namespace teardown before the callback executes, and win the race condition to achieve use-after-free. The EPSS score of 0.02% (5th percentile) reflects minimal observed exploitation attempts in the wild, consistent with the attack requiring kernel-level capabilities (CAP_NET_ADMIN in a user namespace) and containerized or virtualized environments where network namespaces are frequently created/destroyed. No CISA KEV listing and no public POC identified suggest this is not being actively exploited despite affecting kernels since version 3.18 (introduced in 2014). Priority is moderate: critical for containerized infrastructure (Kubernetes, Docker, OpenStack) where namespace churn is high and multiple tenants exist, but lower priority for traditional single-tenant systems. The availability of patches across all active stable kernel branches (6.12.80, 6.18.21, 6.19.11, 7.0) with upstream commits provides clear remediation path. Organizations running container orchestration platforms should prioritize patching; single-purpose appliances or non-containerized systems face lower immediate risk.

Exploit ScenarioDerived

An authenticated local user with CAP_NET_ADMIN capability in a user namespace (common in unprivileged container environments) sends a crafted XFRM_MSG_NEWSPDINFO netlink message to queue policy_hthresh.work. The attacker immediately destroys the network namespace, triggering xfrm_policy_fini() teardown which frees the struct net. Before the queued work callback executes, the attacker sprays kernel memory to place controlled data at the freed struct net address. When xfrm_hash_rebuild() runs, it dereferences the attacker-controlled memory via container_of(), allowing arbitrary kernel code execution. No public POC exists at time of analysis, but the race window is widened in high-churn container environments (Kubernetes pod restarts, CI/CD pipelines).

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

Use-after-free in Linux kernel XFRM subsystem allows local authenticated attackers to achieve arbitrary code execution with high privileges. The vulnerability arises when XFRM policy hash threshold work items (policy_hthresh.work) outlive network namespace teardown, dereferencing freed struct net memory in xfrm_hash_rebuild(). Vendor patches available across multiple stable kernel versions (6.12.80, 6.18.21, 6.19.11, 7.0) confirm the issue affects kernels since commit 880a6fab8f6b. EPSS score of 0.02% (5th percentile) indicates low observed exploitation probability despite CVSS:3.1 score of 7.8; no CISA KEV listing or public POC identified at time of analysis.

RemediationAI

Update to patched Linux kernel versions: 6.12.80 or later for the 6.12.x series, 6.18.21 or later for 6.18.x, 6.19.11 or later for 6.19.x, or upgrade to kernel 7.0. Patches are available from https://git.kernel.org/stable/ with commit IDs 29fe3a61bcdce398ee3955101c39f89c01a8a77e (mainline), 4e2e77843fef473ef47e322d52436d8308582a96, 56ea2257b83ee29a543f158159e3d1abc1e3e4fe, and 8854e9367465d784046362698731c1111e3b39b8 for stable branches. If immediate patching is not feasible, consider compensating controls: (1) Restrict CAP_NET_ADMIN capability in user namespaces by setting kernel.unprivileged_userns_clone=0 via sysctl, which prevents unprivileged users from creating network namespaces entirely but breaks container runtimes requiring unprivileged operation; (2) Implement namespace lifecycle monitoring to reduce rapid creation/destruction cycles that increase race window, though this only reduces probability without eliminating risk; (3) Deploy kernel runtime integrity monitoring (IMA/EVM) to detect post-exploitation memory corruption, noting this provides detection not prevention. All workarounds significantly limit functionality compared to patching. Test patches in staging environments first as XFRM changes can affect IPsec VPN connectivity.

Affected VersionsENISA

Linux patch: 6.18.21
Linux patch: 6.12.80
Linux patch: 6.19.11
Linux 880a6fab8f6ba5b5abe59ea68533202ddea1012c <4e2e77843fef473ef47e322d52436d8308582a96
Linux 880a6fab8f6ba5b5abe59ea68533202ddea1012c <56ea2257b83ee29a543f158159e3d1abc1e3e4fe
Linux 880a6fab8f6ba5b5abe59ea68533202ddea1012c <29fe3a61bcdce398ee3955101c39f89c01a8a77e
Linux 880a6fab8f6ba5b5abe59ea68533202ddea1012c <8854e9367465d784046362698731c1111e3b39b8
Linux patch: 7.0
Linux 3.18
Linux patch: 0

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 vulnerability resides in the Linux kernel's XFRM (IP framework for transforming packets) subsystem, specifically in the policy hash threshold management code introduced in commit 880a6fab8f6ba5b5abe59ea68533202ddea1012c. When userspace sends a XFRM_MSG_NEWSPDINFO netlink message, the kernel queues policy_hthresh.work onto the system workqueue. The work callback xfrm_hash_rebuild() retrieves its parent struct net via container_of() pointer arithmetic. During network namespace teardown, xfrm_policy_fini() flushes policy_hash_work but fails to synchronize policy_hthresh.work, creating a time-of-check-time-of-use race condition. If the namespace completes teardown and frees the struct net before the queued work executes, xfrm_hash_rebuild() dereferences a dangling pointer to freed kernel memory. This is a classic use-after-free condition in kernel workqueue handling, exploitable when network namespaces are dynamically created and destroyed (common in containerized environments). The fix adds proper work synchronization during teardown to ensure queued callbacks cannot outlive their associated data structures.

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

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 6.4 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

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 28, 2026 - 16:30 nvd
Patch available
CVSS changed
Apr 27, 2026 - 15:22 NVD
7.8 (HIGH)
Patch available
Apr 22, 2026 - 16:33 EUVD
CVE Published
Apr 22, 2026 - 14:16 nvd
HIGH 7.8

DescriptionCVE.org

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

xfrm: prevent policy_hthresh.work from racing with netns teardown

A XFRM_MSG_NEWSPDINFO request can queue the per-net work item policy_hthresh.work onto the system workqueue.

The queued callback, xfrm_hash_rebuild(), retrieves the enclosing struct net via container_of(). If the net namespace is torn down before that work runs, the associated struct net may already have been freed, and xfrm_hash_rebuild() may then dereference stale memory.

xfrm_policy_fini() already flushes policy_hash_work during teardown, but it does not synchronize policy_hthresh.work.

Synchronize policy_hthresh.work in xfrm_policy_fini() as well, so the queued work cannot outlive the net namespace teardown and access a freed struct net.

Executive ViewAI

Why It Matters

CVE-2026-31516 is a use-after-free vulnerability in the Linux kernel XFRM subsystem that allows authenticated local attackers to execute arbitrary code with elevated privileges. Organizations running affected kernel versions face risk of privilege escalation and system compromise by authenticated users with local access. Patched versions are available across multiple stable kernel branches, enabling rapid remediation.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible: restrict local user account creation and SSH access to systems running affected kernels; disable XFRM subsystem via kernel command-line parameters if IPsec/network security policies are not required; implement container/virtualization isolation to limit authenticated local user privilege scope.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% 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

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

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

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