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

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

CVE-2026-98598 is a privilege escalation vulnerability in the Linux kernel's IPv6 implementation that causes reference cycles and resource leaks. This article covers the technical details, security impact, 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-98598 Overview

CVE-2026-98598 is a Linux kernel vulnerability in the IPv6 routing subsystem. The flaw allows rt6_insert_exception() to attach a new exception route to a fib6_info structure that is already being destroyed. This creates a reference cycle between the fib6_info and the exception route, leaking the fib6_info, its nexthop device, and all per-CPU routes stored in fib6_nh->rt6i_pcpu. The leak stalls network device unregistration, producing repeated unregister_netdevice: waiting for <dev> to become free messages in the kernel log.

Critical Impact

The reference cycle prevents netdev unregistration indefinitely, resulting in resource exhaustion and persistent kernel log warnings on affected systems.

Affected Products

  • Linux kernel IPv6 routing subsystem (net/ipv6/route.c)
  • Kernel builds containing the FIB6_EXCEPTION_BUCKET_FLUSHED refactor of fib6_nh_flush_exceptions()
  • Stable kernel branches referenced by commits 0346ec2, 649ffc7, and e03e770

Discovery Timeline

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

Technical Details for CVE-2026-98598

Vulnerability Analysis

The vulnerability resides in the IPv6 FIB (Forwarding Information Base) exception handling logic. Prior to the cited refactor, fib6_nh_flush_exceptions() always set from->exception_bucket_flushed = 1 under rt6_exception_lock. This flag prevented rt6_insert_exception() from inserting a new exception for a dying fib6_info.

The refactor replaced the flag with the FIB6_EXCEPTION_BUCKET_FLUSHED bit stored in nh->rt6i_exception_bucket. The bit is only set when the bucket is non-NULL. Additionally, fib6_nh_flush_exceptions() is now invoked from fib6_nh_release() after fib6_ref has already reached zero.

If rt6_insert_exception() runs concurrently while the target fib6_info is being removed via fib6_purge_rt(), the insertion succeeds. The resulting exception route holds a reference to the dying fib6_info, which in turn tracks the exception, forming a cycle that cannot be reclaimed.

Root Cause

The root cause is a race condition between exception insertion and FIB entry teardown. The guard flag that previously blocked insertion is no longer set early enough in the destruction path. This leaves a window in which rt6_insert_exception() operates on a fib6_info whose refcount has already dropped to zero.

Attack Vector

Triggering the condition requires concurrent IPv6 routing activity against a route that is being removed, for example during tunnel teardown such as gre6 device unregistration. The upstream fix calls fib6_drop_pcpu_from() before rt6_flush_exceptions(), sets fib6_destroying before acquiring rt6_exception_lock, and makes rt6_insert_exception() check f6i->fib6_destroying prior to inserting a new entry.

The vulnerability is described in prose only; see the upstream commits for the exact code changes: Kernel Git Commit 0346ec2, Kernel Git Commit 649ffc7, and Kernel Git Commit e03e770.

Detection Methods for CVE-2026-98598

Indicators of Compromise

  • Repeated kernel log messages of the form unregister_netdevice: waiting for <ifname> to become free. Usage count = N where N remains elevated.
  • Growing fib6_info or route cache memory consumption observable through /proc/slabinfo entries such as ip6_dst_cache.
  • IPv6 tunnel interfaces (for example gre6, ip6tnl) that fail to unregister after ip link delete.

Detection Strategies

  • Monitor dmesg and journal output for persistent unregister_netdevice stall messages tied to IPv6-capable interfaces.
  • Track slab allocator counters for IPv6 route objects over time to detect unbounded growth consistent with reference-cycle leaks.
  • Correlate network namespace teardown events with lingering IPv6 FIB entries using ip -6 route show cache.

Monitoring Recommendations

  • Alert on kernel log patterns matching unregister_netdevice: waiting for to catch stalled device teardown early.
  • Baseline per-host IPv6 route cache size and alert on sustained deviation above baseline.
  • Track container and virtualization hosts that frequently create and destroy IPv6 tunnel or veth interfaces, as these environments exercise the vulnerable code path.

How to Mitigate CVE-2026-98598

Immediate Actions Required

  • Apply the upstream kernel patches referenced in commits 0346ec2, 649ffc7, and e03e770 to stable branches.
  • Update to a distribution kernel build that incorporates the fib6_destroying check in rt6_insert_exception().
  • Reboot hosts that exhibit stalled unregister_netdevice messages, as the leaked references cannot be reclaimed without a kernel restart.

Patch Information

The upstream fix moves fib6_drop_pcpu_from() before rt6_flush_exceptions(), sets fib6_destroying prior to acquiring rt6_exception_lock, and adds a f6i->fib6_destroying check inside rt6_insert_exception(). Patches are available at Kernel Git Commit 0346ec2, Kernel Git Commit 649ffc7, and Kernel Git Commit e03e770. The now-dead FIB6_EXCEPTION_BUCKET_FLUSHED logic is slated for cleanup in net-next.

Workarounds

  • Reduce the frequency of IPv6 tunnel and virtual interface churn on vulnerable kernels until a patched build is deployed.
  • Where feasible, disable IPv6 on interfaces that are not required, lowering the attack surface for the race.
  • Schedule proactive reboots on long-lived hosts exhibiting elevated fib6_info retention to recover leaked resources.
bash
# Check for the stall signature on a running system
dmesg -T | grep -E 'unregister_netdevice: waiting for'

# Inspect IPv6 route cache slab usage
grep ip6_dst_cache /proc/slabinfo

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.