Skip to main content

Linux Kernel CVE-2026-31471

| EUVDEUVD-2026-24821 HIGH
Double Free (CWE-415)
2026-04-22 416baaa9-dc9f-4396-8d5f-8c081fb06d67
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
    Gain local authenticated access
  2. Delivery
    Induce memory pressure via resource exhaustion
  3. Exploit
    Trigger IP-TFS state cloning operation
  4. Install
    Force reorder window allocation failure
  5. C2
    Heap spray freed memory region
  6. Execute
    Trigger XFRM cleanup path
  7. Impact
    Exploit use-after-free for code execution
  8. Step 8
    Escalate to root privileges

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
Exploitation Conditions

Exploitation requires the target Linux system to have IP-TFS (IP Traffic Flow Security) mode explicitly enabled in XFRM IPsec configurations, which is not a default setting in most distributions. The attacker must have local authenticated access with low privileges (PR:L) to trigger XFRM state cloning operations through IPsec policy manipulation or netlink socket operations. The vulnerability triggers only when memory allocation fails during the reorder window setup in iptfs_clone_state(), which requires either natural memory pressure conditions or attacker-induced resource exhaustion. Systems not using IP-TFS mode IPsec tunnels are not vulnerable even if running affected kernel versions. The flaw is specific to kernel versions containing commit 6be02e3e4f37 and later (6.14+) where the IP-TFS implementation exists. Remote exploitation is not possible (AV:L), and no user interaction is required (UI:N) once local access is obtained. The need for IP-TFS configuration substantially limits real-world attack surface compared to generic kernel vulnerabilities.

Impact

Real-world risk is significantly lower than the CVSS 7.8 score suggests due to multiple limiting factors. The CVSS vector (AV:L/AC:L/PR:L/UI:N) confirms local access and low privileges are required, but the description reveals the critical constraint: the vulnerability only triggers during failed XFRM state cloning operations specifically for IP-TFS mode. This requires the target system to have IP-TFS IPsec tunnels configured (a relatively uncommon deployment) AND requires triggering a memory allocation failure during state cloning, which is non-deterministic under normal conditions. The EPSS score of 0.02% (4th percentile) aligns with this assessment, indicating security researchers have not observed real-world exploitation. No CISA KEV listing confirms the absence of active exploitation campaigns. However, the use-after-free primitive provides a reliable path to kernel memory corruption once triggered, enabling full system compromise (C:H/I:H/A:H). The availability of proof-of-concept techniques for kernel UAF exploitation in academic literature means sophisticated attackers could weaponize this if they gain local access to IP-TFS-configured systems. Patch availability across stable kernel branches (6.18.21, 6.19.11, 7.0) indicates vendor acknowledgment of the issue's validity. Priority should be moderate for systems running IP-TFS, low for general Linux deployments without this feature enabled.

Exploit ScenarioDerived

A local authenticated attacker with standard user privileges on a Linux system running IP-TFS IPsec tunnels crafts a sequence of IPsec Security Association establishment requests designed to exhaust kernel memory or trigger allocation failures through resource consumption. When iptfs_clone_state() attempts to clone XFRM state for a new tunnel and the reorder window allocation fails due to memory pressure, the function leaves a dangling pointer to freed memory in x->mode_data. The attacker then triggers the XFRM state cleanup path, causing the kernel to dereference the freed memory during destroy_state() callback. By carefully timing subsequent heap allocations (heap spraying techniques), the attacker can control the contents of the freed memory region before the use-after-free occurs, redirecting kernel control flow to attacker-controlled code or corrupting critical kernel data structures to escalate privileges to root or cause system crash.

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 IPTFS subsystem allows local authenticated attackers to trigger high-severity memory corruption through failed state cloning operations. The vulnerability stems from premature publication of mode_data pointer before allocation completion, enabling arbitrary code execution, privilege escalation, or denial of service when IPsec IP-TFS (IP Traffic Flow Security) mode cloning fails. Vendor patches available for kernel versions 6.18.21, 6.19.11, and 7.0. EPSS score of 0.02% (4th percentile) indicates very low observed exploitation probability despite CVSS 7.8 rating, likely due to the specific IPTFS configuration prerequisite and local access requirement.

RemediationAI

Immediately upgrade to patched Linux kernel versions: 6.18.21 or later for 6.18.x series, 6.19.11 or later for 6.19.x series, or stable 7.0 release. Patch commits available at https://git.kernel.org/stable/c/371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1 (mainline fix) and stable branch fixes at https://git.kernel.org/stable/c/5784a1e2889c9525a8f036cb586930e232170bf7 and https://git.kernel.org/stable/c/d849a2f7309fc0616e79d13b008b0a47e0458b6e. For systems that cannot immediately patch, disable IP-TFS IPsec tunnel mode configurations as a temporary workaround by removing iptfs-mode directives from IPsec policy configurations (typically in /etc/ipsec.conf or strongSwan configurations). This eliminates the vulnerable code path entirely but breaks IP-TFS tunnel functionality, so traditional ESP tunnel mode must be used instead, which reduces traffic flow confidentiality protections. Standard ESP tunnel mode provides adequate confidentiality for most use cases but lacks IP-TFS padding/aggregation features. Verify no IP-TFS tunnels are active using 'ip xfrm state list' before and after configuration changes. Organizations requiring IP-TFS features must prioritize kernel patching over workarounds.

Affected VersionsENISA

Linux 6be02e3e4f376fea468846c8562655ca5ee18204 <371a43c4ac70cac0de9f9b1fc5b1660b9565b9f1
Linux 6be02e3e4f376fea468846c8562655ca5ee18204 <d849a2f7309fc0616e79d13b008b0a47e0458b6e
Linux patch: 7.0
Linux 6be02e3e4f376fea468846c8562655ca5ee18204 <5784a1e2889c9525a8f036cb586930e232170bf7
Linux patch: 6.18.21
Linux 6.14
Linux patch: 6.19.11
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

This vulnerability affects the XFRM (Transform) framework's IP-TFS implementation in the Linux kernel network stack. XFRM provides the kernel-level infrastructure for IPsec transformations. IP-TFS (IP Traffic Flow Security, RFC 9347) is a tunnel mode that provides enhanced traffic flow confidentiality by padding and aggregating packets. The flaw occurs in iptfs_clone_state() during the cloning of XFRM state objects when establishing new Security Associations. The function prematurely assigns the cloned state pointer to x->mode_data before completing memory allocation for the reorder window buffer. If kmalloc() fails during reorder window allocation, the error path invokes kfree() on the cloned state but leaves the dangling pointer in x->mode_data. Subsequently, the XFRM subsystem's generic cleanup code calls destroy_state() using the now-invalid pointer, resulting in a classic use-after-free condition. The affected code path exists from commit 6be02e3e4f37 onwards and impacts kernel versions 6.14 through 6.19.x and early 7.0 releases.

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

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
CVSS changed
Apr 27, 2026 - 14:22 NVD
7.8 (HIGH)
Patch released
Apr 27, 2026 - 14:16 nvd
Patch available
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: iptfs: only publish mode_data after clone setup

iptfs_clone_state() stores x->mode_data before allocating the reorder window. If that allocation fails, the code frees the cloned state and returns -ENOMEM, leaving x->mode_data pointing at freed memory.

The xfrm clone unwind later runs destroy_state() through x->mode_data, so the failed clone path tears down IPTFS state that clone_state() already freed.

Keep the cloned IPTFS state private until all allocations succeed so failed clones leave x->mode_data unset. The destroy path already handles a NULL mode_data pointer.

Executive ViewAI

Why It Matters

CVE-2026-31471 is a high-severity use-after-free vulnerability in the Linux kernel's XFRM IPTFS subsystem that allows authenticated local attackers to achieve arbitrary code execution or privilege escalation through memory corruption when IPsec IP-TFS mode operations fail. Organizations running affected kernel versions with IPTFS enabled should prioritize patching, particularly in environments where untrusted local users have system access, though the 0.02% EPSS score indicates current exploitation likelihood remains minimal.

Business Impact: Medium
Compensating Controls

Apply vendor patch. Interim mitigation: disable IPTFS mode in XFRM IPsec configurations if operationally feasible; restrict local system access to trusted users only; monitor for unexpected privilege escalation or kernel crashes related to XFRM operations.

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
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

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.

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