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

CVE-2026-97597: Linux Kernel IPv6 Privilege Escalation Flaw

CVE-2026-97597 is a privilege escalation vulnerability in the Linux kernel IPv6 flowlabel mechanism that allows unbounded lease list growth. This article covers technical details, affected versions, and mitigation steps.

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

CVE-2026-97597 is a resource exhaustion vulnerability in the Linux kernel's IPv6 flowlabel subsystem. The ipv6_flowlabel_get() function allocates an ipv6_fl_socklist entry for every successful GET request. The recheck path for a compatible existing flowlabel links another lease without applying any lease admission check. Repeated GET requests for a shareable label can grow a socket's lease list without bound, consuming kernel memory. The fix caps duplicate leases per socket at FL_MAX_PER_SOCK and uses capable(CAP_NET_ADMIN) to prevent unprivileged user namespace bypasses.

Critical Impact

Unprivileged local users can exhaust kernel memory by issuing repeated IPv6 flowlabel GET requests for a shareable label, bypassing admission controls on the recheck path.

Affected Products

  • Linux kernel (upstream) with IPv6 flowlabel subsystem enabled
  • Stable kernel branches prior to the patched commits
  • Distributions shipping affected mainline kernel versions

Discovery Timeline

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

Technical Details for CVE-2026-97597

Vulnerability Analysis

The vulnerability resides in the IPv6 flowlabel management logic in the Linux kernel networking stack. When a userspace process issues a flowlabel GET request through the IPV6 socket API, the kernel invokes ipv6_flowlabel_get() to associate a flowlabel with the socket. For each successful request, the kernel allocates an ipv6_fl_socklist entry and links it to the socket's lease list.

The flaw lies in the recheck code path. When a GET request matches a compatible existing flowlabel, including labels found via the fl_intern() collision path, the kernel appends another lease to the socket without consulting the mem_check() admission policy. An unprivileged process can issue repeated GETs targeting the same shareable globally interned label and continuously grow its lease list, consuming non-swappable kernel memory.

Root Cause

The root cause is a missing admission check on the shared-label reuse path. New-label allocations are gated by mem_check(), but duplicate lease creation for an existing shareable label bypasses that gate. The data structure permits unbounded linking because no per-socket lease ceiling was enforced before the fix.

Attack Vector

A local unprivileged attacker opens an IPv6 socket and repeatedly invokes the flowlabel GET operation for a shareable interned label. Each call appends a new ipv6_fl_socklist entry, enabling kernel-memory exhaustion that can degrade system availability. Attackers could previously evade capability checks by entering a user namespace with a private netns where they held CAP_NET_ADMIN, while still consuming host memory. The patch addresses this by using capable(CAP_NET_ADMIN) against the initial namespace.

The vulnerability mechanism is described in the upstream commit messages. See the kernel.org stable tree commit 467467bf for the technical fix details.

Detection Methods for CVE-2026-97597

Indicators of Compromise

  • Unexplained growth in kernel slab allocations tied to ipv6_fl_socklist or related flowlabel caches
  • Processes making abnormally high volumes of setsockopt() calls with IPV6_FLOWLABEL_MGR on IPv6 sockets
  • Sustained kernel memory pressure or OOM events correlated with specific unprivileged user sessions

Detection Strategies

  • Monitor /proc/net/ip6_flowlabel for anomalously high reference counts on individual labels
  • Audit setsockopt syscalls with the IPV6_FLOWLABEL_MGR option using eBPF or auditd rules
  • Correlate per-process slab consumption with network syscall patterns to identify abusive workloads

Monitoring Recommendations

  • Collect kernel memory telemetry including slabtop output and /proc/meminfo deltas on multi-tenant hosts
  • Alert on repeated flowlabel GET operations from a single process ID within short intervals
  • Track installed kernel versions across the fleet to confirm patch coverage on IPv6-enabled hosts

How to Mitigate CVE-2026-97597

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the stable tree commits as soon as distribution updates are available
  • Inventory hosts running IPv6-enabled kernels and prioritize multi-tenant systems where untrusted local users can open sockets
  • Enforce per-user resource limits with cgroups v2 memory controllers to constrain blast radius on unpatched systems

Patch Information

The fix is distributed across three stable tree commits: commit 2f1a6dd5, commit 467467bf, and commit 8d6cd188. The patch rejects a new unprivileged lease once a socket already holds FL_MAX_PER_SOCK leases, applies the check on the shared recheck path, and performs the admission check before updating linger and expires so a rejected GET does not refresh the shared label.

Workarounds

  • Disable IPv6 on hosts where it is not required to eliminate the attack surface entirely
  • Restrict access to local shell sessions on multi-tenant systems until patches are deployed
  • Apply strict memory cgroup limits for untrusted user sessions to bound kernel allocations driven by their syscalls
bash
# Verify kernel version and IPv6 flowlabel state
uname -r
cat /proc/sys/net/ipv6/flowlabel_consistency
cat /proc/net/ip6_flowlabel

# Optional: disable IPv6 if unused
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1

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.