CVE-2026-139559

Source
https://cve.org/CVERecord?id=CVE-2026-139559
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139559.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139559
Downstream
Published
2026-11-30T13:35:52Z
Modified
2026-11-30T15:02:29Z
Summary
seg6: fix HMAC validation when an extension header precedes the SRH
Details

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..seg6_require_hmac=1 and a key installed with "ip sr hmac set 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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139559.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
5829d70b0b6cd055e7a9af3abe573927e919e30b
Fixed
bbc1987204ea8eff0b3ea325a2239ec1c956371b
Fixed
7a854e18c2748ab4b2abb8edb35020d9292165c0
Fixed
771d35303f7ab9fc7b422ce254269a2868c58809
Fixed
3c82e978a0b0a45f521b8c200c037d50d66080e8
Fixed
f9cb4d296d81adb0923546ca5d54fae57a81af52

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139559.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.14.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139559.json"