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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:35:52.842Z
- **Modified:** 2026-11-30T14:19:36.577Z

## Who should check

- Anyone running Linux \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< bbc1987204ea8eff0b3ea325a2239ec1c956371b; \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< 7a854e18c2748ab4b2abb8edb35020d9292165c0; \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< 771d35303f7ab9fc7b422ce254269a2868c58809; \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< 3c82e978a0b0a45f521b8c200c037d50d66080e8; \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< f9cb4d296d81adb0923546ca5d54fae57a81af52
- Anyone running Linux 4.14

## Description

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

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

seg6\_hmac\_validate\_skb() derived the SRH from skb\_transport\_header().
That only holds while the two coincide, which is not true on the
seg6\_local input path.

ip6\_rcv\_core() 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 seg6\_local
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
seg6\_get\_srh() 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
seg6\_require\_hmac is set. Such a packet is legitimate: RFC 8200 allows
Destination Options before a routing header, and get\_srh() has walked
the header chain since commit 5829d70b0b6c ("ipv6: sr: fix get\_srh() 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 seg6\_get\_srh(). This
happens before seg6\_require\_hmac is read, so the default configuration
is affected.

Reproduce by giving a node a seg6local End SID with
net.ipv6.conf.\<dev\>.seg6\_require\_hmac=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 and fixed versions

- Linux: \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< bbc1987204ea8eff0b3ea325a2239ec1c956371b; \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< 7a854e18c2748ab4b2abb8edb35020d9292165c0; \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< 771d35303f7ab9fc7b422ce254269a2868c58809; \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< 3c82e978a0b0a45f521b8c200c037d50d66080e8; \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< f9cb4d296d81adb0923546ca5d54fae57a81af52 (cvelist)
- Linux: 4.14 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139559. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139559.md
Affected: Linux >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < bbc1987204ea8eff0b3ea325a2239ec1c956371b; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < 7a854e18c2748ab4b2abb8edb35020d9292165c0; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < 771d35303f7ab9fc7b422ce254269a2868c58809; >= 5829d70b0b6cd055e7a9af3…
Fixed in: Linux 7a854e18c2748ab4b2abb8edb35020d9292165c0, Linux 771d35303f7ab9fc7b422ce254269a2868c58809, Linux 3c82e978a0b0a45f521b8c200c037d50d66080e8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139559 being exploited?

There is no confirmed exploitation: CVE-2026-139559 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139559?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139559?

Linux \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< bbc1987204ea8eff0b3ea325a2239ec1c956371b; \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< 7a854e18c2748ab4b2abb8edb35020d9292165c0; \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< 771d35303f7ab9fc7b422ce254269a2868c58809; \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< 3c82e978a0b0a45f521b8c200c037d50d66080e8; \>= 5829d70b0b6cd055e7a9af3abe573927e919e30b, \< f9cb4d296d81adb0923546ca5d54fae57a81af52; Linux 4.14.

### Is there a fix for CVE-2026-139559?

Yes. Fixed in Linux 7a854e18c2748ab4b2abb8edb35020d9292165c0, Linux 771d35303f7ab9fc7b422ce254269a2868c58809, Linux 3c82e978a0b0a45f521b8c200c037d50d66080e8. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139559?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/bbc1987204ea8eff0b3ea325a2239ec1c956371b>
- other: <https://git.kernel.org/stable/c/7a854e18c2748ab4b2abb8edb35020d9292165c0>
- other: <https://git.kernel.org/stable/c/771d35303f7ab9fc7b422ce254269a2868c58809>
- other: <https://git.kernel.org/stable/c/3c82e978a0b0a45f521b8c200c037d50d66080e8>
- other: <https://git.kernel.org/stable/c/f9cb4d296d81adb0923546ca5d54fae57a81af52>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139559>

HTML: <https://flawdb.com/CVE-2026-139559> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139559>
