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-98096 Overview
CVE-2026-98096 is a Linux kernel vulnerability in the IPv6 Segment Routing (SRv6) code path. The flaw affects ipv6_srh_rcv() in the net/ipv6/seg6 subsystem, where the socket buffer network header offset remained negative when a Hop-by-Hop options header preceded the Segment Routing Header (SRH). The incorrect offset propagated to routing, flow dissection, and forwarding paths. Downstream handlers interpreted the negative value as an unsigned length, enabling out-of-bounds memcpy operations and buffer overflows during packet forwarding or redirection via act_mirred. Network-adjacent attackers can craft IPv6 packets to trigger kernel memory corruption on hosts configured to process SRv6 traffic.
Critical Impact
Remote attackers can trigger out-of-bounds memory writes in the Linux kernel by sending crafted IPv6 packets with Hop-by-Hop options preceding an SRH, risking kernel panic or memory corruption on SRv6-enabled routers and forwarders.
Affected Products
- Linux kernel versions containing the pre-patch ipv6_srh_rcv() logic in net/ipv6/seg6_iptunnel.c
- Linux distributions shipping affected stable kernel branches referenced in the upstream fixes
- Systems with IPv6 Segment Routing (SRv6) enabled for routing or forwarding
Discovery Timeline
- 2026-09-25 - CVE-2026-98096 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98096
Vulnerability Analysis
The vulnerability resides in ipv6_srh_rcv(), which processes inbound packets carrying an IPv6 Segment Routing Header. On entry, skb->data points at the SRH while skb_network_header() references the IPv6 header. When segments_left > 0, the pre-patch code restored skb->data by pushing sizeof(struct ipv6hdr), implicitly assuming the SRH immediately follows the fixed IPv6 header.
That assumption breaks when any additional extension header, such as a Hop-by-Hop options header, sits between the IPv6 header and the SRH. In that case skb_network_offset(skb) remains negative after the push. The negative offset then flows into two downstream call chains that treat it as either a signed index into packet data or an unsigned length. This mismatch is the root condition for memory corruption during subsequent routing and forwarding operations.
Root Cause
The root cause is an incorrect assumption about IPv6 extension header ordering combined with signed-to-unsigned conversion downstream. ip6_route_input() invokes fib6_rules_early_flow_dissect(), which calls __skb_flow_dissect() with the negative offset, breaking both the BPF and C flow dissectors. During forwarding through ip6_forward() or redirection via act_mirred, routines such as sch_fragment() and neighbour output interpret the same negative value as an unsigned length, producing out-of-bounds memcpy operations.
Attack Vector
An attacker on a reachable network path sends an IPv6 packet containing a Hop-by-Hop options header followed by a Segment Routing Header with segments_left > 0. The target host must process SRv6 traffic through the vulnerable receive path. No authentication or user interaction is required, though attack complexity is elevated because the attacker must reach a host configured to accept and process SRv6 packets with the specific extension header layout.
The upstream fix pushes -skb_network_offset(skb) before routing so that skb_network_offset(skb) equals zero for route lookup and flow dissection, and pulls skb_transport_offset(skb) on the loopback path to restore skb->data to the SRH. See the kernel commits 3ad7dca, 975b5b0, 97b21ef, and ce4c8be for the full patch set.
Detection Methods for CVE-2026-98096
Indicators of Compromise
- Unexpected kernel oops or panic entries in dmesg referencing ipv6_srh_rcv, __skb_flow_dissect, ip6_forward, or sch_fragment
- Spikes in malformed IPv6 packets containing both Hop-by-Hop (next header 0) and Routing Type 4 (SRH) extension headers
- Sudden interface resets or neighbour subsystem errors on SRv6-enabled routers
Detection Strategies
- Audit kernel versions on all Linux hosts and compare against the fixed stable branches referenced in the upstream commits
- Inspect packet captures at perimeter devices for IPv6 extension header chains that place a Hop-by-Hop header before an SRH
- Correlate kernel crash reports with network telemetry showing anomalous SRv6 traffic volume or source distribution
Monitoring Recommendations
- Enable kernel crash reporting (kdump, systemd-coredump) and forward crash metadata to a centralized log pipeline
- Monitor nstat and netstat -s counters for IPv6 extension header errors and dropped forwarded packets
- Alert on repeated SRv6 packet drops or flow dissector errors emitted by eBPF programs attached to ingress hooks
How to Mitigate CVE-2026-98096
Immediate Actions Required
- Apply the stable kernel updates containing commits 3ad7dca, 975b5b0, 97b21ef, and ce4c8be
- Reboot affected hosts after kernel installation to activate the patched code path
- Prioritize patching of SRv6-enabled routers, forwarders, and any Linux hosts that process IPv6 extension headers
Patch Information
The fix was merged into the upstream Linux kernel through the referenced stable commits. The patch adjusts ipv6_srh_rcv() to push -skb_network_offset(skb) before routing, guaranteeing skb_network_offset(skb) is zero for route lookup and flow dissection. On the loopback path it pulls skb_transport_offset(skb) to restore skb->data to the SRH. Consult your distribution's security tracker for backported package versions.
Workarounds
- Disable IPv6 Segment Routing processing where not required by setting net.ipv6.conf.all.seg6_enabled=0 and net.ipv6.conf.<iface>.seg6_enabled=0
- Drop IPv6 packets combining Hop-by-Hop options and Routing Type 4 headers at upstream firewalls or ACLs on edge devices
- Restrict acceptance of SRv6 traffic to trusted peer networks using ingress filtering until kernels are patched
# Disable SRv6 processing on all interfaces until kernels are patched
sysctl -w net.ipv6.conf.all.seg6_enabled=0
sysctl -w net.ipv6.conf.default.seg6_enabled=0
# Persist across reboots
cat <<EOF >> /etc/sysctl.d/99-disable-srv6.conf
net.ipv6.conf.all.seg6_enabled=0
net.ipv6.conf.default.seg6_enabled=0
EOF
# Verify kernel version after patching
uname -r
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

