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

CVE-2026-98596: Linux Kernel IPv6 Race Condition Vulnerability

CVE-2026-98596 is a race condition flaw in the Linux kernel IPv6 routing implementation that causes memory leaks when devices are unregistered. 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-98596 Overview

CVE-2026-98596 is a Linux kernel vulnerability in the IPv6 networking stack. The flaw causes a destination cache (dst) leak for uncached routes when a network device is unregistered concurrently with route lookups. The leaked dst structure retains a reference to the underlying device through rt->from, preventing proper cleanup. This is a kernel memory and resource management issue affecting the ip6_route_output_flags(), ip6_rt_put_flags(), and ip6_dst_check() functions. IPv4 is not affected.

Critical Impact

A race condition between rt6_uncached_list_flush_dev() and concurrent IPv6 route lookups leaks dst entries and pins device structures, enabling resource exhaustion and preventing clean device unregistration.

Affected Products

  • Linux kernel IPv6 networking subsystem (net/ipv6/route.c)
  • Kernel versions containing commit a4c2fd7f7891 ("net: remove DST_NOCACHE flag") and commit 98aa546af5e4 ("inet: remove (struct uncached_list)->quarantine")
  • Fixed via kernel commits 5045aa2, be31fe6, ed902d5, and f972274

Discovery Timeline

  • 2026-10-18 - CVE-2026-98596 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-98596

Vulnerability Analysis

The Linux kernel's IPv6 routing code tracks uncached routes using a per-CPU list (rt6_uncached_list). After commit a4c2fd7f7891 removed the static DST_NOCACHE flag, the kernel detects uncached routes by evaluating list_empty(&rt->dst.rt_uncached).

When a network device is unregistered, rt6_uncached_list_flush_dev() walks the per-CPU list and unlinks each matching route. Earlier kernels moved these routes to a quarantine list using list_move(). Commit 98aa546af5e4 replaced that behavior with list_del_init(), which reinitializes the list head so that list_empty() returns true for the unlinked entry.

This change creates a race window. If list_del_init() executes concurrently with ip6_route_output_flags(), the uncached check incorrectly reports the route as cached. The caller then invokes dst_hold_safe() to take a reference, and the subsequent ip6_rt_put_flags() call skips ip6_rt_put() because it also observes list_empty() as true. The dst structure is never released, and the device referenced through rt->from remains pinned.

Root Cause

The root cause is a race condition [TOCTOU] between route reference accounting and list unlinking. The code uses list_empty(&rt->dst.rt_uncached) as a stand-in for uncached-route state, but list_del_init() makes that condition transiently indistinguishable from a never-added cached route.

Attack Vector

Exploitation requires local kernel-level activity that triggers IPv6 route lookups while a network interface is being torn down. Repeated interface unregistration under IPv6 traffic can leak dst entries and device references, resulting in memory growth and preventing device teardown. The fix changes the detection to check rt6->dst.rt_uncached_list instead of list_empty() on the entry itself. See the upstream fix in Kernel Commit 5045aa2 for technical details.

Detection Methods for CVE-2026-98596

Indicators of Compromise

  • Kernel log messages reporting unregister_netdevice: waiting for <dev> to become free that persist indefinitely after interface teardown.
  • Growing kmemleak reports referencing rt6_info or dst_entry allocations tied to IPv6 routes.
  • Slab cache growth in ip6_dst_cache observed via /proc/slabinfo without corresponding workload increase.

Detection Strategies

  • Monitor kernel version against the fixed commits (5045aa2, be31fe6, ed902d5, f972274) across your Linux fleet.
  • Correlate repeated interface churn events (container, VPN, or virtual NIC teardown) with slab memory growth to identify affected hosts.
  • Enable CONFIG_DEBUG_KMEMLEAK in test environments to validate whether dst leaks reproduce under IPv6 load.

Monitoring Recommendations

  • Track dmesg for unregister_netdevice stalls, which are the clearest runtime signal of leaked device references.
  • Alert on anomalous growth of ip6_dst_cache and related slab objects on hosts that frequently create and destroy IPv6-enabled interfaces.
  • Collect host telemetry centrally so kernel version drift and interface-churn patterns can be queried alongside memory metrics.

How to Mitigate CVE-2026-98596

Immediate Actions Required

  • Inventory Linux hosts and identify kernels built between the introduction of commits a4c2fd7f7891 and 98aa546af5e4 and the fix commits listed below.
  • Apply the upstream stable kernel update that includes the fix and schedule a reboot during the next maintenance window.
  • Prioritize patching on container hosts, routers, and virtualization nodes where IPv6 interfaces are created and destroyed frequently.

Patch Information

The fix replaces the list_empty(&rt->dst.rt_uncached) check with a check against rt6->dst.rt_uncached_list, eliminating the race. Apply one of the upstream patches: Kernel Commit 5045aa2, Kernel Commit be31fe6, Kernel Commit ed902d5, or Kernel Commit f972274. Consume the fix via your distribution's stable kernel update channel where available.

Workarounds

  • Reduce IPv6 interface churn where feasible by consolidating virtual interface lifecycles until a patched kernel is deployed.
  • Reboot hosts periodically to reclaim leaked dst and device references if patching cannot be scheduled immediately.
  • Disable IPv6 on systems that do not require it, as the issue does not affect the IPv4 path.

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.