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-98802 Overview
CVE-2026-98802 is a Linux kernel vulnerability in the IPv6 Segment Routing (SRv6) subsystem. The functions advance_nextseg() and seg6_next_csid_advance_arg() modify the Segment Routing Header (SRH) Segments Left field and the IPv6 destination address without first ensuring the socket buffer (skb) data is writable. When the skb has been cloned, for example by an AF_PACKET socket on the ingress device, the kernel writes into packet data shared with the clone. This causes information corruption across packet consumers and can expose modified packets to unprivileged readers.
Critical Impact
Kernel writes into cloned packet data can corrupt data returned to AF_PACKET socket readers, affecting integrity of received IPv6 segment-routed traffic.
Affected Products
- Linux kernel versions containing the SRv6 advance_nextseg() implementation prior to the referenced fix commits
- Linux kernel versions containing seg6_next_csid_advance_arg() with the NEXT-C-SID advancement logic
- Linux distributions shipping unpatched upstream stable kernels with IPv6 Segment Routing enabled
Discovery Timeline
- 2026-10-18 - CVE-2026-98802 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98802
Vulnerability Analysis
The vulnerability resides in the IPv6 Segment Routing (seg6) processing path in the Linux kernel. The function advance_nextseg() decrements the SRH Segments Left field and rewrites the IPv6 destination address to the next segment in the list. The companion function seg6_next_csid_advance_arg() advances the NEXT-C-SID argument embedded in the destination address. Both operations mutate packet contents directly through pointers derived from the skb without first calling skb_ensure_writable().
When another kernel path has cloned the skb, the data pages remain shared between the original and the clone. Any in-place modification by the seg6 input action therefore affects the clone as well. A reader of the cloned packet, such as a user-space process bound to an AF_PACKET socket on the ingress interface, can observe the mutated header values rather than the frame originally received on the wire.
Root Cause
The root cause is a missing writable check on shared skb data prior to in-place header modification [CWE-662 concurrent access to shared data]. The seg6 input action assumed exclusive ownership of the packet buffer, but the Linux networking stack permits cloning for packet sniffing and multi-consumer delivery. Writing to a shared data region without first unsharing it violates the skb ownership contract.
Attack Vector
An attacker or local observer running a packet-capture process on an ingress interface receives mutated SRv6 headers instead of the original frame. The simplified delivery path is: __netif_receive_skb_core invokes deliver_skb which calls packet_rcv; packet_rcv performs skb_clone and queues the clone to the AF_PACKET socket; ipv6_rcv then proceeds through ip6_rcv_core into input_action_end_core, which calls advance_nextseg and writes into the data shared with the clone.
Exploitation requires that IPv6 Segment Routing be enabled and that an unprivileged or privileged observer be able to capture packets on the receiving interface. The result is corruption of captured data rather than remote code execution.
See the upstream fix commits for implementation detail: Kernel Git Commit 8ae3f40 and Kernel Git Commit e9141fd.
Detection Methods for CVE-2026-98802
Indicators of Compromise
- Packet captures on ingress interfaces showing SRv6 Segments Left values or IPv6 destination addresses that do not match wire traffic observed on an upstream tap
- Discrepancies between tcpdump output on the host and packet contents observed on a mirrored switch port for the same flow
- Unexpected drops accompanied by SKB_DROP_REASON_NOMEM after applying the fix, indicating skb_ensure_writable() allocation pressure
Detection Strategies
- Audit running kernel versions against the fix commits 8ae3f40 and e9141fd to identify unpatched hosts processing SRv6 traffic
- Enable drop_monitor or perf tracing on kfree_skb with the SKB_DROP_REASON_NOMEM reason to detect post-patch allocation failures in the seg6 path
- Review kernel configuration for CONFIG_IPV6_SEG6_LWTUNNEL and related SRv6 options on hosts that also run packet capture agents
Monitoring Recommendations
- Monitor AF_PACKET socket usage on hosts configured as SRv6 endpoints and correlate with kernel version inventory
- Track kernel patch state across fleet management tooling and flag hosts running SRv6 input actions on pre-fix kernels
- Alert on anomalous IPv6 destination address rewrites observed in capture pipelines feeding security analytics
How to Mitigate CVE-2026-98802
Immediate Actions Required
- Apply the upstream kernel fixes referenced by commits 8ae3f4067ba4ae3a15581392f6dac422e3d3def0 and e9141fdb7a2ead48cfcd60c681aba91d3014255b or the equivalent distribution update
- Inventory hosts with IPv6 Segment Routing enabled and prioritize patching those also running packet capture or monitoring agents
- Validate that callers of advance_nextseg() correctly handle the new NULL return value and drop packets with SKB_DROP_REASON_NOMEM
Patch Information
The upstream fix adds skb_ensure_writable() calls inside advance_nextseg() and seg6_next_csid_advance_arg() before any modification of SRH or IPv6 destination address bytes. Because skb_ensure_writable() may reallocate skb->head, the patched advance_nextseg() now returns a valid SRH pointer or NULL, and seg6_next_csid_advance_arg() re-derives the destination address pointer after the call. Callers drop the packet with SKB_DROP_REASON_NOMEM on failure. Reference commits: Kernel Git Commit 8ae3f40 and Kernel Git Commit e9141fd.
Workarounds
- Disable IPv6 Segment Routing input actions on hosts that do not require SRv6 forwarding by removing seg6 lightweight tunnel routes
- Restrict AF_PACKET socket creation to trusted processes using CAP_NET_RAW controls and seccomp profiles until kernels are patched
- Avoid running packet capture agents on ingress interfaces of SRv6 endpoints while unpatched kernels remain in production
# Verify running kernel version and SRv6 configuration
uname -r
sysctl net.ipv6.conf.all.seg6_enabled
# List seg6 lightweight tunnel routes currently installed
ip -6 route show | grep -i seg6
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

