CVE-2026-98802: seg6: ensure packet data is writable before modifying SRH and IPv6 DA

Published Oct 18, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

seg6: ensure packet data is writable before modifying SRH and IPv6 DA

advancenextseg() modifies the SRH Segments Left field and the IPv6 destination address without ensuring the packet data is writable. seg6nextcsidadvancearg() has the same problem when it advances the NEXT-C-SID argument in the destination address.

The skb may be cloned, for example by an AFPACKET socket receiving on the ingress device. advancenextseg() and seg6nextcsidadvancearg() then write into the packet data shared with the clone. A read from that socket can return the modified packet instead of the received one. The simplified path below shows this for advancenextseg():

netifreceiveskbonecore netifreceiveskbcore deliverskb [orig: users=2, cloned=0] packetrcv skbclone clone queued to the AFPACKET socket consumeskb(orig) [orig: users=1, cloned=1] ipv6rcv ip6rcvcore skbsharecheck: no-op [orig: users=1] [...] inputactionendcore advancenextseg writes into the data shared with the clone

Call skbensurewritable() in advancenextseg() and in seg6nextcsidadvancearg() before they modify the packet data. skbensurewritable() may reallocate skb->head, which invalidates the pointers into the packet data taken before the call. advancenextseg() now returns a valid SRH pointer, or NULL if skbensurewritable() fails. seg6nextcsidadvancearg() takes the pointer to the destination address from the skb after skbensurewritable(). On failure, the callers drop the packet with SKBDROPREASONNOMEM.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Call skb_ensure_writable() in advance_nextseg() and seg6_next_csid_advance_arg() before modifying the SRH or IPv6 destination address; use the valid SRH pointer returned after the call, and have callers drop the packet with SKB_DROP_REASON_NOMEM when skb_ensure_writable() fails.

Event History

Oct 18, 2026
CVE Published
via MITRE·03:48 PM
Data Sourced
via MITRE·03:48 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203