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

CVE-2026-97598: Linux Kernel IPv4 FIB Privilege Escalation

CVE-2026-97598 is a privilege escalation vulnerability in the Linux kernel IPv4 FIB table allocation mechanism that could allow unbounded RTNL lock holding. This article covers 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-97598 Overview

CVE-2026-97598 affects the Linux kernel's IPv4 Forwarding Information Base (FIB) subsystem. The fib_empty_table() function iterates through every table ID starting from 1 until it finds an unused one. IPv4 routing tables live in a 256-bucket hash table, so a dense set of allocated IDs forces each probe to traverse a growing hash chain while the Routing Netlink (RTNL) mutex is held. This behavior creates a resource exhaustion condition tied to automatic table assignment through ip rule ... table 0. The upstream fix bounds the automatic allocation to table IDs up to 4096 to limit RTNL hold time.

Critical Impact

Prolonged RTNL mutex contention can stall networking control-plane operations across the system during dense IPv4 routing table allocation.

Affected Products

  • Linux kernel (IPv4 FIB subsystem)
  • Distributions shipping affected mainline and stable kernel branches
  • Systems using legacy IPv4 automatic routing table allocation

Discovery Timeline

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

Technical Details for CVE-2026-97598

Vulnerability Analysis

The issue resides in the IPv4 FIB table allocation path. When a user requests automatic table assignment with ip rule ... table 0, the kernel invokes fib_empty_table() to find the lowest free ID in the range 1..RT_TABLE_MAX (0xFFFFFFFF). The search probes each candidate ID sequentially against a 256-bucket hash table. As the number of allocated tables grows, each probe walks a longer hash chain. The RTNL mutex remains held throughout, blocking unrelated network configuration operations. The automatic path is IPv4-only, undocumented in ip-rule, and uncovered by kernel selftests. Both NetworkManager and systemd reject table 0, which limits real-world exposure.

Root Cause

The root cause is an unbounded linear search in fib_empty_table() combined with holding the RTNL mutex for the full duration. The algorithmic complexity grows with the density of allocated table IDs across the 256-bucket hash table, producing extended lock-hold latency.

Attack Vector

A local user with CAP_NET_ADMIN can repeatedly request automatic IPv4 table allocation to force the kernel to walk progressively longer hash chains while holding RTNL. The resulting contention delays other network configuration operations across the system. The upstream patch bounds automatic allocation to ID 4096 and returns ENOBUFS if that range is fully occupied. Explicit table IDs above 4096 remain usable through direct specification.

See the upstream commits for the applied bound and search termination logic.
Reference: https://git.kernel.org/stable/c/fe9a906d2bff2d2707bafd6353b5e032a42aeb35

Detection Methods for CVE-2026-97598

Indicators of Compromise

  • Repeated RTM_NEWRULE netlink messages requesting table 0 from unexpected processes
  • Kernel soft lockup warnings or RTNL contention messages during routing configuration
  • Unusual growth in the IPv4 routing table ID space observed through ip rule show output

Detection Strategies

  • Audit kernel logs for RTNL hold warnings and scheduler stalls correlated with routing changes
  • Monitor process execution for ip rule add invocations specifying table 0 outside normal administrative workflows
  • Track the count of configured IPv4 routing tables over time to identify abnormal allocation patterns

Monitoring Recommendations

  • Enable auditd rules on /sbin/ip and netlink socket activity to capture rule modifications
  • Collect /proc/net/fib_trie and ip rule show snapshots periodically for baseline comparison
  • Alert on sudden increases in routing table count or sustained CPU time within softirq networking contexts

How to Mitigate CVE-2026-97598

Immediate Actions Required

  • Apply the upstream Linux kernel patches that bound automatic table ID allocation to 4096
  • Restrict CAP_NET_ADMIN to trusted administrative accounts and container workloads
  • Review automation scripts that invoke ip rule ... table 0 and migrate them to explicit table IDs

Patch Information

The fix is applied across multiple stable kernel branches. Reference the upstream commits Linux Kernel Commit 2c29c05, Linux Kernel Commit bc8d01d8, Linux Kernel Commit efdfb1e2, and Linux Kernel Commit fe9a906d for the backports. The patch stops the search at 4096 and returns ENOBUFS when the automatic range is full.

Workarounds

  • Replace ip rule add ... table 0 with explicit table IDs in configuration files and provisioning scripts
  • Use NetworkManager or systemd-networkd for route rule management since both reject table 0 by default
  • Limit untrusted users and containers from acquiring CAP_NET_ADMIN through seccomp, SELinux, or AppArmor policies
bash
# Replace automatic allocation with an explicit table ID
ip rule add from 192.0.2.0/24 table 100

# Verify configured rules
ip rule show

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.