Skip to main content
Vulnerability Database/CVE-2026-98241

CVE-2026-98241: Linux Kernel IPv6 XFRM Privilege Escalation

CVE-2026-98241 is a privilege escalation vulnerability in the Linux kernel's IPv6 XFRM implementation affecting socket handling in error paths. This article covers the technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98241 Overview

CVE-2026-98241 is a Linux kernel vulnerability in the IPv6 XFRM subsystem. The functions xfrm6_local_rxpmtu() and xfrm6_local_error() dereference skb->sk under the assumption that it always references a full IPv6 socket. When a TCP SYN-ACK skb is owned by a TCP_NEW_SYN_RECV request_sock and routing selects an IPv6 XFRM tunnel with a lower MTU, the local PMTU and error handling paths miscast the mini-socket as a full inet_sock or ipv6_pinfo. This leads to an out-of-bounds read beyond the request_sock allocation.

Critical Impact

A local attacker able to trigger IPv6 XFRM tunnel path MTU events against a listening TCP socket can read kernel memory outside the request_sock allocation, risking information disclosure, kernel instability, and potential compromise of adjacent kernel state.

Affected Products

  • Linux kernel versions containing the vulnerable xfrm6_local_rxpmtu() and xfrm6_local_error() code paths
  • Systems using IPv6 with XFRM/IPsec tunnel configurations
  • Linux distributions shipping kernels prior to the stable backport commits referenced in the advisory

Discovery Timeline

  • 2026-10-06 - CVE-2026-98241 published to NVD
  • 2026-10-07 - Last updated in NVD database

Technical Details for CVE-2026-98241

Vulnerability Analysis

The vulnerability resides in the IPv6 XFRM local error handling callbacks xfrm6_local_rxpmtu() and xfrm6_local_error(). Both callbacks dereference skb->sk and treat it as a full IPv6 socket without verifying the socket type. The owner field on an skb can legitimately point at a request_sock representing a half-open TCP connection in the TCP_NEW_SYN_RECV state.

When the output path selects an IPv6 XFRM tunnel route with a lower MTU during SYN-ACK transmission, the kernel invokes the local PMTU or error callback with the mini-socket still attached. The callback then accesses inet_sock and ipv6_pinfo fields that extend beyond the smaller request_sock allocation. This produces an out-of-bounds read into adjacent kernel heap memory.

Root Cause

The root cause is an incorrect socket type assumption in two XFRM callbacks. A request_sock is a compact structure used for pending TCP handshakes and lacks the full ipv6_pinfo and inet_sock layouts. Casting it as a complete socket causes field accesses to read past the allocation boundary. The surrounding XFRM IPv6 PMTU and error code already uses skb_to_full_sk() to resolve the true owning socket; these two callbacks were not updated to match that pattern.

Attack Vector

Exploitation requires local access and the ability to influence IPv6 XFRM tunnel routing against a TCP listener. An attacker initiates a TCP connection to a listening service while an IPv6 XFRM tunnel route with a reduced MTU is in play. The resulting SYN-ACK skb is owned by the request_sock, and PMTU or error delivery through the vulnerable callbacks triggers the miscast and out-of-bounds read. The upstream fix resolves the owner with skb_to_full_sk() in both callbacks and returns early when no full socket is attached. Full technical context is available in the referenced kernel commit 4c030a0400eb and sibling backports.

Detection Methods for CVE-2026-98241

Indicators of Compromise

  • Unexpected kernel oops, warnings, or panics referencing xfrm6_local_rxpmtu or xfrm6_local_error in dmesg or /var/log/kern.log
  • KASAN or SLUB debug reports flagging out-of-bounds reads near request_sock or inet6_request_sock allocations
  • Repeated local attempts to influence IPv6 XFRM tunnel path MTU against listening TCP services

Detection Strategies

  • Monitor for kernel crash signatures tied to the IPv6 XFRM output and error paths on hosts running IPsec or XFRM tunnels
  • Correlate TCP SYN-ACK anomalies with ICMPv6 Packet Too Big events arriving on XFRM-protected routes
  • Audit kernel versions across the fleet and flag hosts running builds that lack the stable backport commits referenced in the advisory

Monitoring Recommendations

  • Enable kernel crash dump collection and forward kern.log events to a centralized log store for correlation
  • Track IPv6 XFRM policy and state changes on production hosts using ip xfrm monitor
  • Alert on repeated process termination of network-facing TCP services following kernel warnings in the XFRM subsystem

How to Mitigate CVE-2026-98241

Immediate Actions Required

  • Inventory Linux hosts running IPv6 with XFRM or IPsec tunnel policies and prioritize them for patching
  • Apply the stable kernel update that incorporates the skb_to_full_sk() fix in xfrm6_local_rxpmtu() and xfrm6_local_error()
  • Restrict local shell access on affected systems until kernels are updated

Patch Information

The fix resolves the skb owner using skb_to_full_sk() in both callbacks and bails out when no full socket is attached. Backports are available in multiple stable branches. Reference the upstream commits for the exact code change: 4c030a0400eb, 60459c670329, 675919e08ce2, 6973a21ee73c, 904a0e827d0d, b1a88633c36d, c21f3f7fbfeda, and ca3d68c32134.

Workarounds

  • Disable IPv6 XFRM or IPsec tunnel policies on hosts where they are not required until the kernel can be patched
  • Where feasible, prefer IPv4 transport for services exposed to untrusted local users on vulnerable kernels
  • Harden local access controls to reduce the pool of users capable of initiating connections that traverse XFRM tunnel routes
bash
# Verify running kernel version and currently loaded XFRM state
uname -r
ip -6 xfrm policy show
ip -6 xfrm state show

# After patching, confirm the kernel package was updated
# Debian/Ubuntu
dpkg -l | grep linux-image
# RHEL/Oracle/Alma
rpm -qa | grep kernel

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.