CVE-2026-139559
seg6: fix HMAC validation when an extension header precedes the SRH
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < bbc1987204ea8eff0b3ea325a2239ec1c956371b; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < 7a854e18c2748ab4b2abb8edb35020d9292165c0; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < 771d35303f7ab9fc7b422ce254269a2868c58809; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < 3c82e978a0b0a45f521b8c200c037d50d66080e8; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < f9cb4d296d81adb0923546ca5d54fae57a81af52
- Anyone running Linux 4.14
Vulnerability facts
- Affected
- Linux >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < bbc1987204ea8eff0b3ea325a2239ec1c956371b; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < 7a854e18c2748ab4b2abb8edb35020d9292165c0; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < 771d35303f7ab9fc7b422ce254269a2868c58809; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < 3c82e978a0b0a45f521b8c200c037d50d66080e8; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < f9cb4d296d81adb0923546ca5d54fae57a81af52; Linux 4.14
- Fixed in
- Linux 7a854e18c2748ab4b2abb8edb35020d9292165c0, Linux 771d35303f7ab9fc7b422ce254269a2868c58809, Linux 3c82e978a0b0a45f521b8c200c037d50d66080e8
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < bbc1987204ea8eff0b3ea325a2239ec1c956371b; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < 7a854e18c2748ab4b2abb8edb35020d9292165c0; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < 771d35303f7ab9fc7b422ce254269a2868c58809; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < 3c82e978a0b0a45f521b8c200c037d50d66080e8; >= 5829d70b0b6cd055e7a9af3abe573927e919e30b, < f9cb4d296d81adb0923546ca5d54fae57a81af52 | — | cvelist |
| Linux | 4.14 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
Technologies
References
Other
- https://git.kernel.org/stable/c/bbc1987204ea8eff0b3ea325a2239ec1c956371b
- https://git.kernel.org/stable/c/7a854e18c2748ab4b2abb8edb35020d9292165c0
- https://git.kernel.org/stable/c/771d35303f7ab9fc7b422ce254269a2868c58809
- https://git.kernel.org/stable/c/3c82e978a0b0a45f521b8c200c037d50d66080e8
- https://git.kernel.org/stable/c/f9cb4d296d81adb0923546ca5d54fae57a81af52
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.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.5 | CVE-2026-140063 Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker | Linux kernel+1 | ||
| MEDIUM 5.1 | CVE-2026-140038 Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber | Linux kernel+1 | ||
| HIGH 7.3 | CVE-2026-139801 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM | Linux kernel | ||
| UNSCORED | CVE-2026-139800 9p/xen: drain response work after unbinding IRQ | Linux kernel | ||
| HIGH 7.0 | CVE-2026-139799 mm/shmem: hold off eviction in shmem_writeout() | Linux kernel |