CVE-2026-139559
seg6: fix HMAC validation when an extension header precedes the SRH
Check your servers for CVE-2026-139559
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139559 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 5829d70b0b6cd055e7a9af3abe573927e919e30b, before bbc1987204ea8eff0b3ea325a2239ec1c956371b affected from 5829d70b0b6cd055e7a9af3abe573927e919e30b, before 7a854e18c2748ab4b2abb8edb35020d9292165c0 affected from 5829d70b0b6cd055e7a9af3abe573927e919e30b, before 771d35303f7ab9fc7b422ce254269a2868c58809 affected from 5829d70b0b6cd055e7a9af3abe573927e919e30b, before 3c82e978a0b0a45f521b8c200c037d50d66080e8 affected from 5829d70b0b6cd055e7a9af3abe573927e919e30b, before f9cb4d296d81adb0923546ca5d54fae57a81af52
Other versions: unaffected
|
| Linux |
affected 4.14 unaffected before 4.14 unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139559 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139559
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139559
trivy image --scanners vuln IMAGE | grep CVE-2026-139559
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/bbc1987204ea8eff0b3ea325a2239ec1c956371b git.kernel.org
- https://git.kernel.org/stable/c/7a854e18c2748ab4b2abb8edb35020d9292165c0 git.kernel.org
- https://git.kernel.org/stable/c/771d35303f7ab9fc7b422ce254269a2868c58809 git.kernel.org
- https://git.kernel.org/stable/c/3c82e978a0b0a45f521b8c200c037d50d66080e8 git.kernel.org
- https://git.kernel.org/stable/c/f9cb4d296d81adb0923546ca5d54fae57a81af52 git.kernel.org
Source: the record CVE-2026-139559 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse