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

CVE-2026-97602: Linux Kernel Privilege Escalation Flaw

CVE-2026-97602 is a privilege escalation vulnerability in the Linux kernel affecting fragment queue handling. Attackers can exploit heap corruption to gain elevated privileges. This post covers technical details, affected versions, impact assessment, and mitigation strategies.

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-97602 Overview

CVE-2026-97602 is a Linux kernel vulnerability in the IPv4/IPv6 fragment reassembly subsystem. The flaw resides in fqdir_pre_exit(), which flushes skbs from incomplete queues without updating their completion state. A fragment arriving before high_thresh is cleared can acquire the queue lock and reuse stale reassembly metadata. For IPv6, this causes ip6_frag_reasm() to use an outdated nhoffset with a new skb, producing an out-of-bounds heap write.

The resulting heap corruption can be leveraged for local privilege escalation when unprivileged user namespaces are enabled. Unflushed fragments can also keep conntrack references alive beyond the per-net cleanup point.

Critical Impact

Local attackers with access to unprivileged network namespaces can trigger heap corruption in the kernel and escalate to root.

Affected Products

  • Linux kernel (mainline and stable branches containing the inet_frags subsystem)
  • Distributions shipping kernels with unprivileged user namespaces enabled
  • IPv6-enabled hosts processing fragmented traffic

Discovery Timeline

  • 2026-09-25 - CVE-2026-97602 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97602

Vulnerability Analysis

The Linux kernel's inet fragments subsystem manages incomplete IP packet reassembly through per-netns fqdir (fragment queue directory) structures backed by an rhashtable. During teardown, fqdir_pre_exit() clears thresholds and flushes skbs from incomplete queues but leaves queue state unchanged.

Two race conditions follow. A fragment that already observed the queue before high_thresh was cleared can take the queue lock and operate on stale reassembly metadata. A queue concurrently killed after fqdir->dead is set transitions to INET_FRAG_COMPLETE|INET_FRAG_HASH_DEAD while still holding old skbs, and is subsequently skipped because it is marked complete.

The KASAN report confirms a slab out-of-bounds write in ipv6_frag_rcv at offset 0 past a 704-byte skbuff_small_head allocation, followed by an out-of-bounds read in ip6_protocol_deliver_rcu. This is a kernel-level [CWE-416] use-after-free / out-of-bounds class defect.

Root Cause

fqdir_pre_exit() does not invalidate queues before flushing their skbs. Reassembly code paths that look up a queue by key can therefore proceed with references to data that is logically torn down but not marked complete, allowing stale nhoffset and header pointers to be applied to new fragments.

Attack Vector

An unprivileged local attacker creates a network namespace and sends crafted IPv6 fragments through a packet socket while triggering namespace teardown. Racing the fragment delivery against fqdir_pre_exit() causes ip6_frag_reasm() to write past the bounds of a freshly allocated skb head, corrupting adjacent slab objects. Shaping the slab layout permits controlled corruption of security-relevant kernel structures.

The upstream fix invalidates each incomplete queue first, then flushes every queue still owned by the dying rhashtable, using HASH_DEAD to identify ownership. Releasing a timer reference removed by inet_frag_kill() is deferred to inet_frag_putn() after the queue lock is dropped. See the upstream patch for implementation details.

Detection Methods for CVE-2026-97602

Indicators of Compromise

  • KASAN reports flagging slab-out-of-bounds reads or writes in ipv6_frag_rcv or ip6_protocol_deliver_rcu
  • Kernel oops or panic traces originating from net/ipv6/reassembly.c around line 289 or 391
  • Unexpected processes spawning root shells shortly after network namespace creation by unprivileged users

Detection Strategies

  • Monitor unshare and clone syscalls that create user and network namespaces, correlated with raw/packet socket activity from the same process
  • Audit kernel ring buffer (dmesg) for BUG: KASAN entries referencing the fragment reassembly path on debug kernels
  • Flag workloads that produce bursts of fragmented IPv6 traffic combined with rapid namespace creation and destruction

Monitoring Recommendations

  • Collect eBPF or auditd telemetry on setns, unshare, and packet socket creation across production hosts
  • Centralize kernel log forwarding to a SIEM so slab-corruption signatures are retained for forensics
  • Baseline per-user namespace creation rates and alert on anomalous spikes

How to Mitigate CVE-2026-97602

Immediate Actions Required

  • Apply the upstream kernel patches referenced in the NVD advisory and reboot affected hosts
  • Disable unprivileged user namespaces where operationally feasible by setting kernel.unprivileged_userns_clone=0 or the equivalent sysctl
  • Prioritize patching on multi-tenant systems, container hosts, and workstations exposed to untrusted local users

Patch Information

Fixes are available in the following upstream commits: 7cb5f464, b824476c, b9d77f16, and bf3d6c44. Rebuild distribution kernels against these commits or install vendor-provided errata packages.

Workarounds

  • Restrict user namespace creation via sysctl -w kernel.unprivileged_userns_clone=0 on Debian/Ubuntu derivatives
  • Apply seccomp or AppArmor profiles that block unshare(CLONE_NEWUSER|CLONE_NEWNET) for untrusted workloads
  • Disable IPv6 reassembly on hosts that do not require it, or drop fragmented IPv6 traffic at the host firewall
bash
# Configuration example
sysctl -w kernel.unprivileged_userns_clone=0
echo 'kernel.unprivileged_userns_clone=0' >> /etc/sysctl.d/99-cve-2026-97602.conf

# Optional: drop inbound IPv6 fragments at the host firewall
ip6tables -I INPUT -m frag --fragfirst -j DROP
ip6tables -I INPUT -m frag --fragmore -j DROP

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.