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

CVE-2026-98306: Linux Kernel SRv6 Privilege Escalation Flaw

CVE-2026-98306 is a privilege escalation vulnerability in the Linux kernel's SRv6 packet handling that causes improper VRF interface flag settings during IPIP decapsulation. This article covers the technical details, impact, and fixes.

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

CVE-2026-98306 is a Linux kernel networking defect in the Segment Routing over IPv6 (SRv6) decapsulation path. When an SRv6 packet arrives on an interface enslaved to a Virtual Routing and Forwarding (VRF) instance, vrf_ip6_rcv() sets IP6SKB_L3SLAVE in the IPv6 control block. However, decap_and_validate() never propagates the equivalent IPSKB_L3SLAVE flag into the IPv4 control block after IPIP decapsulation. The missing flag causes the socket lookup to treat decapsulated packets as if they arrived outside the VRF, breaking the documented VRF scoping behavior for unbound UDP and TCP sockets.

Critical Impact

Decapsulated SRv6 traffic bypasses VRF socket scoping, so packets destined for sockets bound to the enslaved ingress interface are not delivered, while unbound sockets outside the VRF may receive them.

Affected Products

  • Linux kernel branches containing SRv6 End.DX4 support and the decap_and_validate() IPIP path
  • Systems using VRF with SRv6 encapsulated IPv4 payloads
  • Kernels built with CONFIG_IPV6_SEG6 and VRF enabled

Discovery Timeline

  • 2026-10-06 - CVE-2026-98306 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98306

Vulnerability Analysis

The defect lives in the SRv6 decapsulation routine decap_and_validate() in the Linux kernel networking stack. SRv6 packets delivered via End.DX4 carry an inner IPv4 payload that is handed to the local socket layer after decapsulation. When the outer IPv6 packet arrives on a VRF-enslaved interface, vrf_ip6_rcv() records the enslavement by setting IP6SKB_L3SLAVE in the IPv6 control block (IP6CB). The decapsulation routine previously set IP6SKB_L3SLAVE on the inner IPv6 control block but never set IPSKB_L3SLAVE on the inner IPv4 control block (IPCB).

Historically the IPv4 IPSKB_L3SLAVE bit was sometimes set accidentally through leftover frag_max_size state when CONFIG_IPV6_MIP6 was present. Commit 44930446dde4 cleared the IPv4 control block during IPIP decapsulation, which made the flag reliably absent and exposed the socket lookup regression.

Root Cause

The root cause is an inconsistency between IPv6 and IPv4 control block propagation across the SRv6 IPIP decapsulation boundary. The IPv4 L3 slave indicator was not derived from its IPv6 counterpart, so the inner packet lost its VRF context before reaching the socket lookup layer.

Attack Vector

This issue is a correctness and policy-enforcement defect rather than a remote code execution vector. The practical consequence is that an unbound UDP or TCP socket outside the VRF may receive decapsulated traffic that administrators intended to scope to the VRF. This contradicts Documentation/networking/vrf.rst, which states that unbound socket scope is limited to the default VRF unless udp_l3mdev_accept or tcp_l3mdev_accept is set. Operators relying on VRF isolation for multi-tenant SRv6 overlays may experience traffic leakage across routing domains.

The fix sets IPSKB_L3SLAVE for IPv4 inside decap_and_validate(), mirroring the existing IPv6 handling. See the upstream commits referenced in Kernel Git Commit 72f4106 and Kernel Git Commit 1d9f5c7 for the patch content.

Detection Methods for CVE-2026-98306

Indicators of Compromise

  • No malware or exploit artifacts are associated with this defect; detection is behavioral and configuration-driven.
  • Unexpected delivery of SRv6-decapsulated IPv4 flows to sockets outside the intended VRF.
  • VRF-bound services failing to receive traffic that was correctly routed to the enslaved interface.

Detection Strategies

  • Audit kernel versions against the fixed commits listed in the NVD references to confirm whether the patch is applied.
  • Validate SRv6 End.DX4 delivery with test traffic bound to specific VRF sockets and compare received packet counts against expected values.
  • Enable packet accounting on VRF ingress interfaces and correlate with socket-level receive statistics for anomalies.

Monitoring Recommendations

  • Monitor kernel changelogs and vendor advisories for backports of commits 72f4106, 1d9f5c7, 5130afa, 7616242, 8c16e1c, ddf6022, e4d7c52, and f8fb473.
  • Track udp_l3mdev_accept and tcp_l3mdev_accept sysctl values across fleet hosts to catch unintended cross-VRF socket exposure.
  • Alert on configuration drift in SRv6 routing tables and VRF memberships that could amplify the impact of this defect.

How to Mitigate CVE-2026-98306

Immediate Actions Required

  • Inventory Linux hosts that use SRv6 with VRF-enslaved interfaces and prioritize them for kernel updates.
  • Apply the stable kernel update that includes the seg6: set IPSKB_L3SLAVE from IP6SKB_L3SLAVE on IPIP decapsulation fix.
  • Verify VRF socket scoping by testing End.DX4 delivery to bound and unbound sockets after patching.

Patch Information

The fix sets IPSKB_L3SLAVE in decap_and_validate() so the inner IPv4 packet carries the correct L3 slave indicator after IPIP decapsulation. Patch commits are available in the upstream stable tree, including Kernel Git Commit 72f4106, Kernel Git Commit 1d9f5c7, Kernel Git Commit 5130afa, Kernel Git Commit 7616242, Kernel Git Commit 8c16e1c, Kernel Git Commit ddf6022, Kernel Git Commit e4d7c52, and Kernel Git Commit f8fb473.

Workarounds

  • Where patching is not immediately possible, bind VRF-scoped services explicitly to the enslaved interface and set udp_l3mdev_accept or tcp_l3mdev_accept only when cross-VRF reception is intended.
  • Use firewall rules on inner IPv4 flows to constrain destination sockets until the kernel update is deployed.
  • Avoid exposing unbound listening services on hosts that terminate SRv6 End.DX4 traffic.
bash
# Verify kernel version and VRF sysctls after patching
uname -r
sysctl net.ipv4.udp_l3mdev_accept
sysctl net.ipv4.tcp_l3mdev_accept

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.