{"api_version":"1","generated_at":"2026-11-30T16:05:43+00:00","cve":"CVE-2026-139559","urls":{"html":"https://cve.report/CVE-2026-139559","api":"https://cve.report/api/cve/CVE-2026-139559.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139559","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139559"},"summary":{"title":"seg6: fix HMAC validation when an extension header precedes the SRH","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nseg6: fix HMAC validation when an extension header precedes the SRH\n\nseg6_hmac_validate_skb() derived the SRH from skb_transport_header().\nThat only holds while the two coincide, which is not true on the\nseg6_local input path.\n\nip6_rcv_core() leaves the transport header just past the IPv6 header.\nA Hop-by-Hop options header is consumed before the route lookup and\nadvances it, but a Destination Options header is not: the seg6_local\nlwtunnel is entered through an input redirect from the route lookup,\nwhich bypasses the extension header handlers. The transport header\nthen still points at the Destination Options header while\nseg6_get_srh() has located the real SRH further down the chain.\n\nThe HMAC is therefore computed over the Destination Options header,\nand a packet carrying a valid HMAC TLV is dropped when\nseg6_require_hmac is set. Such a packet is legitimate: RFC 8200 allows\nDestination Options before a routing header, and get_srh() has walked\nthe header chain since commit 5829d70b0b6c (\"ipv6: sr: fix get_srh() to\ncomply with IPv6 standard \"RFC 8200\"\").\n\nWith a Fragment or an Authentication header in front of the SRH, the\nsame mistake also reads past the data pulled by seg6_get_srh(). This\nhappens before seg6_require_hmac is read, so the default configuration\nis affected.\n\nReproduce by giving a node a seg6local End SID with\nnet.ipv6.conf.<dev>.seg6_require_hmac=1 and a key installed with\n\"ip sr hmac set <keyid> sha1\", then sending\n\n  IPv6 -> Destination Options -> SRH (carrying a valid HMAC TLV) -> payload\n\nto that SID: it is dropped, while the same packet without the\nDestination Options header passes.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:36","updated_at":"2026-11-30 14:19:36"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/f9cb4d296d81adb0923546ca5d54fae57a81af52","name":"https://git.kernel.org/stable/c/f9cb4d296d81adb0923546ca5d54fae57a81af52","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/771d35303f7ab9fc7b422ce254269a2868c58809","name":"https://git.kernel.org/stable/c/771d35303f7ab9fc7b422ce254269a2868c58809","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3c82e978a0b0a45f521b8c200c037d50d66080e8","name":"https://git.kernel.org/stable/c/3c82e978a0b0a45f521b8c200c037d50d66080e8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/bbc1987204ea8eff0b3ea325a2239ec1c956371b","name":"https://git.kernel.org/stable/c/bbc1987204ea8eff0b3ea325a2239ec1c956371b","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7a854e18c2748ab4b2abb8edb35020d9292165c0","name":"https://git.kernel.org/stable/c/7a854e18c2748ab4b2abb8edb35020d9292165c0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139559","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139559","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5829d70b0b6cd055e7a9af3abe573927e919e30b bbc1987204ea8eff0b3ea325a2239ec1c956371b git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5829d70b0b6cd055e7a9af3abe573927e919e30b 7a854e18c2748ab4b2abb8edb35020d9292165c0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5829d70b0b6cd055e7a9af3abe573927e919e30b 771d35303f7ab9fc7b422ce254269a2868c58809 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5829d70b0b6cd055e7a9af3abe573927e919e30b 3c82e978a0b0a45f521b8c200c037d50d66080e8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5829d70b0b6cd055e7a9af3abe573927e919e30b f9cb4d296d81adb0923546ca5d54fae57a81af52 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.14","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.14 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["include/net/seg6_hmac.h","net/ipv6/exthdrs.c","net/ipv6/seg6_hmac.c","net/ipv6/seg6_local.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"bbc1987204ea8eff0b3ea325a2239ec1c956371b","status":"affected","version":"5829d70b0b6cd055e7a9af3abe573927e919e30b","versionType":"git"},{"lessThan":"7a854e18c2748ab4b2abb8edb35020d9292165c0","status":"affected","version":"5829d70b0b6cd055e7a9af3abe573927e919e30b","versionType":"git"},{"lessThan":"771d35303f7ab9fc7b422ce254269a2868c58809","status":"affected","version":"5829d70b0b6cd055e7a9af3abe573927e919e30b","versionType":"git"},{"lessThan":"3c82e978a0b0a45f521b8c200c037d50d66080e8","status":"affected","version":"5829d70b0b6cd055e7a9af3abe573927e919e30b","versionType":"git"},{"lessThan":"f9cb4d296d81adb0923546ca5d54fae57a81af52","status":"affected","version":"5829d70b0b6cd055e7a9af3abe573927e919e30b","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["include/net/seg6_hmac.h","net/ipv6/exthdrs.c","net/ipv6/seg6_hmac.c","net/ipv6/seg6_local.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.14"},{"lessThan":"4.14","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"4.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"4.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"4.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.14","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nseg6: fix HMAC validation when an extension header precedes the SRH\n\nseg6_hmac_validate_skb() derived the SRH from skb_transport_header().\nThat only holds while the two coincide, which is not true on the\nseg6_local input path.\n\nip6_rcv_core() leaves the transport header just past the IPv6 header.\nA Hop-by-Hop options header is consumed before the route lookup and\nadvances it, but a Destination Options header is not: the seg6_local\nlwtunnel is entered through an input redirect from the route lookup,\nwhich bypasses the extension header handlers. The transport header\nthen still points at the Destination Options header while\nseg6_get_srh() has located the real SRH further down the chain.\n\nThe HMAC is therefore computed over the Destination Options header,\nand a packet carrying a valid HMAC TLV is dropped when\nseg6_require_hmac is set. Such a packet is legitimate: RFC 8200 allows\nDestination Options before a routing header, and get_srh() has walked\nthe header chain since commit 5829d70b0b6c (\"ipv6: sr: fix get_srh() to\ncomply with IPv6 standard \"RFC 8200\"\").\n\nWith a Fragment or an Authentication header in front of the SRH, the\nsame mistake also reads past the data pulled by seg6_get_srh(). This\nhappens before seg6_require_hmac is read, so the default configuration\nis affected.\n\nReproduce by giving a node a seg6local End SID with\nnet.ipv6.conf.<dev>.seg6_require_hmac=1 and a key installed with\n\"ip sr hmac set <keyid> sha1\", then sending\n\n  IPv6 -> Destination Options -> SRH (carrying a valid HMAC TLV) -> payload\n\nto that SID: it is dropped, while the same packet without the\nDestination Options header passes."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:35:52.842Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/bbc1987204ea8eff0b3ea325a2239ec1c956371b"},{"url":"https://git.kernel.org/stable/c/7a854e18c2748ab4b2abb8edb35020d9292165c0"},{"url":"https://git.kernel.org/stable/c/771d35303f7ab9fc7b422ce254269a2868c58809"},{"url":"https://git.kernel.org/stable/c/3c82e978a0b0a45f521b8c200c037d50d66080e8"},{"url":"https://git.kernel.org/stable/c/f9cb4d296d81adb0923546ca5d54fae57a81af52"}],"title":"seg6: fix HMAC validation when an extension header precedes the SRH","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139559","datePublished":"2026-11-30T13:35:52.842Z","dateReserved":"2026-11-30T13:22:15.940Z","dateUpdated":"2026-11-30T13:35:52.842Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:36","lastModifiedDate":"2026-11-30 14:19:36","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139559","Ordinal":"1","Title":"seg6: fix HMAC validation when an extension header precedes the ","CVE":"CVE-2026-139559","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139559","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nseg6: fix HMAC validation when an extension header precedes the SRH\n\nseg6_hmac_validate_skb() derived the SRH from skb_transport_header().\nThat only holds while the two coincide, which is not true on the\nseg6_local input path.\n\nip6_rcv_core() leaves the transport header just past the IPv6 header.\nA Hop-by-Hop options header is consumed before the route lookup and\nadvances it, but a Destination Options header is not: the seg6_local\nlwtunnel is entered through an input redirect from the route lookup,\nwhich bypasses the extension header handlers. The transport header\nthen still points at the Destination Options header while\nseg6_get_srh() has located the real SRH further down the chain.\n\nThe HMAC is therefore computed over the Destination Options header,\nand a packet carrying a valid HMAC TLV is dropped when\nseg6_require_hmac is set. Such a packet is legitimate: RFC 8200 allows\nDestination Options before a routing header, and get_srh() has walked\nthe header chain since commit 5829d70b0b6c (\"ipv6: sr: fix get_srh() to\ncomply with IPv6 standard \"RFC 8200\"\").\n\nWith a Fragment or an Authentication header in front of the SRH, the\nsame mistake also reads past the data pulled by seg6_get_srh(). This\nhappens before seg6_require_hmac is read, so the default configuration\nis affected.\n\nReproduce by giving a node a seg6local End SID with\nnet.ipv6.conf.<dev>.seg6_require_hmac=1 and a key installed with\n\"ip sr hmac set <keyid> sha1\", then sending\n\n  IPv6 -> Destination Options -> SRH (carrying a valid HMAC TLV) -> payload\n\nto that SID: it is dropped, while the same packet without the\nDestination Options header passes.","Type":"Description","Title":"seg6: fix HMAC validation when an extension header precedes the "}]}}}