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

CVE-2026-97974: Linux Kernel IPv6 Use-After-Free Vulnerability

CVE-2026-97974 is a use-after-free flaw in the Linux kernel IPv6 routing subsystem that causes null pointer dereference during concurrent route operations. This post explains its impact, 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-97974 Overview

CVE-2026-97974 is a null pointer dereference vulnerability in the Linux kernel's IPv6 routing subsystem. The flaw resides in the __ip6_del_rt_siblings() function in net/ipv6/route.c. A race condition allows rt->fib6_node to become NULL between route lookup and sibling deletion, triggering a kernel crash. The issue was reported by syzbot through fuzzing, and a public reproducer confirms the condition. The vulnerability affects systems where inet6_rtm_delroute() operations run concurrently without holding the RTNL lock, enabled by the RTNL_FLAG_DOIT_UNLOCKED flag.

Critical Impact

Local unprivileged users with the ability to send netlink RTM_DELROUTE messages can trigger a kernel null pointer dereference, causing a denial of service through kernel panic.

Affected Products

  • Linux kernel versions containing the unlocked inet6_rtm_delroute() code path
  • Distributions shipping affected mainline kernels prior to the fix commits
  • Systems with IPv6 routing enabled and ECMP route configurations

Discovery Timeline

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

Technical Details for CVE-2026-97974

Vulnerability Analysis

The vulnerability stems from a race condition in the IPv6 FIB (Forwarding Information Base) routing table management. The inet6_rtm_delroute() handler executes with RTNL_FLAG_DOIT_UNLOCKED set, meaning multiple threads can perform route deletions concurrently without serialization through the RTNL lock. Inside ip6_route_del(), the route lookup operates under rcu_read_lock() without acquiring table->tb6_lock.

After the lookup returns a route pointer but before __ip6_del_rt_siblings() acquires table->tb6_lock, another thread can modify the routing table. One documented scenario involves ECMP (Equal-Cost Multi-Path) route replacement via RTM_NEWROUTE with the NLM_F_REPLACE flag. In this path, fib6_add_rt2node() unlinks all old siblings and sets iter->fib6_node = NULL. When the deletion thread subsequently accesses rt->fib6_node->leaf, it dereferences a NULL pointer, triggering the KASAN report shown in the syzbot stack trace.

Root Cause

The root cause is missing validation of rt->fib6_node after re-acquiring table->tb6_lock in __ip6_del_rt_siblings(). The code assumed the node reference obtained during RCU-protected lookup remained valid, but concurrent modifications can nullify this field. This is a classic Time-of-Check Time-of-Use (TOCTOU) pattern between the lockless lookup and the locked modification phase.

Attack Vector

An attacker with the ability to send netlink messages on the AF_NETLINK socket family and the NETLINK_ROUTE protocol can trigger this condition. Exploitation requires concurrent RTM_DELROUTE and RTM_NEWROUTE operations against ECMP routes. The public reproducer linked in the advisory demonstrates how to race the two operations reliably. The impact is limited to denial of service through kernel panic; no code execution or privilege escalation has been demonstrated.

Technical details are available in the upstream fix commits: Kernel Git Commit 1155234, Kernel Git Commit cdca92e, and Kernel Git Commit e7ff91f.

Detection Methods for CVE-2026-97974

Indicators of Compromise

  • Kernel panic or oops messages referencing __ip6_del_rt_siblings+0x31e/0x7c0 in net/ipv6/route.c
  • KASAN reports showing null-ptr-deref in range [0x0000000000000020-0x0000000000000027]
  • Call stacks containing ip6_route_del, inet6_rtm_delroute, and rtnetlink_rcv_msg
  • Unexpected system reboots on hosts running IPv6 with ECMP routing

Detection Strategies

  • Monitor /var/log/kern.log and dmesg output for null pointer dereference traces originating in the IPv6 FIB code
  • Audit netlink message activity for high rates of concurrent RTM_DELROUTE and RTM_NEWROUTE operations from unprivileged processes
  • Deploy kernel crash collection tooling such as kdump to capture panic data for post-incident analysis

Monitoring Recommendations

  • Track kernel version inventory across Linux fleets to prioritize patching of unfixed hosts
  • Correlate netlink activity with process ancestry to identify suspicious route-table manipulation
  • Enable auditd rules for sendmsg syscalls targeting the NETLINK_ROUTE family on sensitive hosts

How to Mitigate CVE-2026-97974

Immediate Actions Required

  • Apply the upstream kernel patches referenced in the fix commits as soon as vendor-backported updates are available
  • Restrict access to raw netlink sockets through capability controls, limiting CAP_NET_ADMIN to trusted service accounts
  • Prioritize patching on multi-tenant hosts and container platforms where untrusted workloads share a kernel

Patch Information

The fix adds a null check for rt->fib6_node before accessing fn->leaf in __ip6_del_rt_siblings(). The fix is distributed across three kernel git commits: 1155234c2227cf36072a43e1e09119472ade7ca7, cdca92eddc025fdb90071be97738f7d55a65f8dd, and e7ff91f19c1aae039a4257fa86fe849afe185291. Consult your Linux distribution's security tracker for backported stable kernel releases.

Workarounds

  • Disable IPv6 on hosts that do not require it using sysctl net.ipv6.conf.all.disable_ipv6=1
  • Avoid deploying ECMP IPv6 routes until the kernel is patched where feasible
  • Use mandatory access control frameworks such as SELinux or AppArmor to restrict which processes can issue RTM_NEWROUTE and RTM_DELROUTE netlink messages
bash
# Configuration example: disable IPv6 at runtime if not required
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1

# Persist across reboots
echo 'net.ipv6.conf.all.disable_ipv6 = 1' >> /etc/sysctl.d/99-disable-ipv6.conf
echo 'net.ipv6.conf.default.disable_ipv6 = 1' >> /etc/sysctl.d/99-disable-ipv6.conf

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.