CVE-2026-139559: seg6: fix HMAC validation when an extension header precedes the SRH

Published Nov 30, 2026
·
Updated

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

seg6: fix HMAC validation when an extension header precedes the SRH

seg6hmacvalidateskb() derived the SRH from skbtransportheader(). That only holds while the two coincide, which is not true on the seg6local input path.

ip6rcvcore() leaves the transport header just past the IPv6 header. A Hop-by-Hop options header is consumed before the route lookup and advances it, but a Destination Options header is not: the seg6local lwtunnel is entered through an input redirect from the route lookup, which bypasses the extension header handlers. The transport header then still points at the Destination Options header while seg6getsrh() has located the real SRH further down the chain.

The HMAC is therefore computed over the Destination Options header, and a packet carrying a valid HMAC TLV is dropped when seg6requirehmac is set. Such a packet is legitimate: RFC 8200 allows Destination Options before a routing header, and getsrh() has walked the header chain since commit 5829d70b0b6c ("ipv6: sr: fix getsrh() to comply with IPv6 standard "RFC 8200"").

With a Fragment or an Authentication header in front of the SRH, the same mistake also reads past the data pulled by seg6getsrh(). This happens before seg6requirehmac is read, so the default configuration is affected.

Reproduce by giving a node a seg6local End SID with net.ipv6.conf.<dev>.seg6requirehmac=1 and a key installed with "ip sr hmac set <keyid> sha1", then sending

IPv6 -> Destination Options -> SRH (carrying a valid HMAC TLV) -> payload

to that SID: it is dropped, while the same packet without the Destination Options header passes.

Affected Software

8 affected componentsFixes available
Linux Linux kernel
linux/kernel>=4.14.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.119
6.12.119
linux/kernel>=6.13.0<6.18.65
6.18.65
linux/kernel>=6.19.0<7.3.6
7.3.6
debian/linux*
debian/linux*
debian/linux<7.3.6-1
7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.119
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.65
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.6
  5. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.6-1

Event History

Nov 30, 2026
CVE Published
via MITRE·01:35 PM
Data Sourced
via MITRE·01:35 PM
Description
Data Sourced
via OSV·01:35 PM
DescriptionAffected Software
Data Sourced
via NVD·02:19 PM
Description

Frequently Asked Questions

1

Which systems are affected in practice?

Systems using the Linux kernel's SEG6 local processing path with seg6_require_hmac enabled are affected when packets place certain IPv6 extension headers, including Destination Options, before the Segment Routing Header (SRH).

2

What is the observable impact?

Legitimate packets carrying a valid HMAC TLV can be dropped because the HMAC is computed over the wrong header when the transport header still points to a preceding extension header. This can affect valid RFC 8200-compliant packets with Destination Options before a routing header.

3

Is HMAC enforcement required for the problem to occur?

Yes. The described packet drop occurs when seg6_require_hmac is set; the validation uses the wrong header location and rejects a packet whose HMAC TLV is valid.

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