From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796048436; b=DQ9SembNqp0OJFPRr1RIyjuQmI4b+iNWRPwEtkniW1gN+LdzYj6VLzVwms61b+ynBheo XxkErquMY7SU91WZM4Ql7xBualTrHZ36qMxt38viWdBgL9GxibFNcU3L5oSD8dsoIn3CF 4/ynmZHWOqIV446RwVyC6xydW7WUONxXWuVKWj/6MMuPj2bLLfEgd2k43hyuY2gQyr8t5 kZZdu7x/FcTk540Nonl77KgDrmWZz5KXfZ9dGmm1aeRc/s2KAwWC31PHrgodYR0Ms1OrE N8Pqc4uplY7sL2hIF4ry9NjQIgwUb9PMJJuYtDc2QDhS+9hMPKfex+69I4aI5P9iuxw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796048436; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=G5fEkTdTmDAfhHqcexLUo4rZvJWkmyE0jf03tfTMC58=; b=vnkKfKj6BMzzceh7w4G+o2rHzjwX1XhcFnHnr+0isqIMxsrkF++vqjqhJIv5cvJdsXJk bpFxCbj22E610cWvEmBQlJmP63O0xOb5M0MoVZcelyJKbIsop6bEiWW+V5m27JvzbxZl3 lOIIFD7AFXgrdYptr34CsnFn2KBRJzPCofULpzwZHix8TDl0ZihynAx9yTGQNCVyRza77 gCH97BZf/m0O1qLdASZldLnm/F1BPjBZoQaaOK4WhzxXjy/hKLnHqOICqNBqcAzvweg5r DDgyM7bITcQyXYOwkhHSR0R5huKJbnLhx9P545AQvcnlWTCsz82flI1e42ucL5nkqEg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=aiZ0wn6f; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A11D606A327 for ; Mon, 30 Nov 2026 14:20:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=aiZ0wn6f Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DAAF1F00898; Mon, 30 Nov 2026 14:20:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796048435; bh=G5fEkTdTmDAfhHqcexLUo4rZvJWkmyE0jf03tfTMC58=; h=From:To:Cc:Subject:Date:Reply-To; b=aiZ0wn6ftiInS8Dl8y60dy8CfPYSwvOVDuPhkspdOsrPxfwur69aSN5FnFvmXLd2M 4p+JX3iiJXknJm/bDqtLbrJy4Oz1eXj0uRGMzTH18HMsAyHN0baNWY24f7q5j7o6MA owCn/fuyqI/qfLe1V/Y57bng3UQLZKGI0iocFNHQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-139559: seg6: fix HMAC validation when an extension header precedes the SRH Date: Mon, 30 Nov 2026 14:39:28 +0100 Message-ID: <2026113057-CVE-2026-139559-e98b@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4125; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nxS5k23HjuRZ2kIIgAwUVThHE6SlOKaNJO3QKbrFRkI=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm81ZxnzgRu4ki68bPdRuHOkoqIvxWucSXi3d0LrimY+ PArnbTuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn8KmWYX+f06fCTyyGfL896 1zpHeovbdWG7xwwLjnGv3afTkSSe65gx/0Xb8jcShzQOAQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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..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. The Linux kernel CVE team has assigned CVE-2026-139559 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit 5829d70b0b6cd055e7a9af3abe573927e919e30b and fixed in 6.6.163 with commit bbc1987204ea8eff0b3ea325a2239ec1c956371b Issue introduced in 4.14 with commit 5829d70b0b6cd055e7a9af3abe573927e919e30b and fixed in 6.12.119 with commit 7a854e18c2748ab4b2abb8edb35020d9292165c0 Issue introduced in 4.14 with commit 5829d70b0b6cd055e7a9af3abe573927e919e30b and fixed in 6.18.65 with commit 771d35303f7ab9fc7b422ce254269a2868c58809 Issue introduced in 4.14 with commit 5829d70b0b6cd055e7a9af3abe573927e919e30b and fixed in 7.3.6 with commit 3c82e978a0b0a45f521b8c200c037d50d66080e8 Issue introduced in 4.14 with commit 5829d70b0b6cd055e7a9af3abe573927e919e30b and fixed in 7.4-rc1 with commit f9cb4d296d81adb0923546ca5d54fae57a81af52 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-139559 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: include/net/seg6_hmac.h net/ipv6/exthdrs.c net/ipv6/seg6_hmac.c net/ipv6/seg6_local.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: 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