Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56152376A03 for ; Sat, 15 Aug 2026 06:26:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775185; cv=none; b=sgDSV5PemvcxM+vj5MDqtj0WxT1Wk6OL1asij7oP0Bz7Ll815LrJ/Y62k10PT2ste0rFdCGvPKu/WpwtYtoI9r8iT02kCTVyUixzVSKdFX68gk4VKodp+CUiyly7Ph+0o46273TDDMUGO6hjs/NxArpUvSlBRTVbYy0KBzACHUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775185; c=relaxed/simple; bh=zFHFpQiRENr5OEtSq5zRWe8EpMbocNgFQAcm2YAO0cY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t4dJ0YggI4mpGunooSZyGFKnzcbJeBEu1g3RUigIVKjcrvNUL5Fopf1/4QVAZY635/D6WK/DHS+edYN7M55OGLMH3fEaD1gsTBGqizfrByp1E1zUMZOw0ufFIjoplsPvVBtD0ln0tKY7IgZMaH/th3GxGhVmpKLBKaadXwZgC68= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2L4eZmW9; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2L4eZmW9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAA541F000E9; Sat, 15 Aug 2026 06:26:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775184; bh=lrUEolWEviyRHweMt+Rd7uKUe2eOmr/A+1DUPOYDWd4=; h=From:To:Cc:Subject:Date:Reply-To; b=2L4eZmW9UK6GBJHoeQ8UTSjX3S0cwaEGtG+RA2ZuxYtUP7BZP2IgIlFyJNUNdTZuA KFgH4kZpsmyiI3JtFUgzWGe2euptocm3heyZmOL40ZKP6u2KvaXBI3o0L9K/rdztxX uMukxT5UrMlrHlZuBdVV9UmyJ63HZT6C4UTsfDE8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72400: seg6: validate SRH length before reading fixed fields Date: Sat, 15 Aug 2026 15:07:59 +0900 Message-ID: <2026081521-CVE-2026-72400-c4b1@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3869; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ic69nqCHU0Xm++6b35LIzCOMz1Flrhz7Pby9IBbdA34=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDG+XfUnc17Qv2MU5/0q+lKtUsqPHrJeSV9ZoW3PtO LVq8nWXjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI1TyG+dUzv2k15By8q2A5 JVHxG/f8L3kf5zLMZvVd834ju0bYUsNjjVw6/bdd+s+8BgA= 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: validate SRH length before reading fixed fields seg6_validate_srh() reads fixed SRH fields such as srh->type and srh->hdrlen before checking that the supplied length covers the fixed struct ipv6_sr_hdr fields. The BPF SEG6 encap path reaches this with a BPF program-supplied pointer and length: bpf_lwt_push_encap() and the SEG6 local BPF END_B6 and END_B6_ENCAP actions call bpf_push_seg6_encap(), which forwards the length to seg6_validate_srh() with no minimum-size guard. A 2-byte SEG6 encap header can therefore make the validator read srh->type at offset 2 beyond the caller-supplied buffer. Reject lengths shorter than the fixed SRH at the top of seg6_validate_srh(), before any field is read. This fixes the BPF helper path and keeps the common validator robust. The Linux kernel CVE team has assigned CVE-2026-72400 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 and fixed in 5.10.261 with commit 715eb12e453df752f1b4baaf972c3acff0ab9402 Issue introduced in 4.18 with commit fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 and fixed in 5.15.212 with commit 7247d05c987c3eec4bb7c2306dbd77ecdf3b7c73 Issue introduced in 4.18 with commit fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 and fixed in 6.1.178 with commit 071f1a38d7ddbadee29c09b9e3ee0ff3a61e6a0e Issue introduced in 4.18 with commit fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 and fixed in 6.6.145 with commit 804bb969f194c93497ba632b98343794c6367fdc Issue introduced in 4.18 with commit fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 and fixed in 6.12.97 with commit 0fc7069d39239978130c37ebceaec85c8948d3f1 Issue introduced in 4.18 with commit fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 and fixed in 6.18.40 with commit 8dba7a94a269b88e500aafc25ad567ef6a423698 Issue introduced in 4.18 with commit fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 and fixed in 7.1.5 with commit c9961336aa5ff83092f23e33ee86666a9dbd1b2a Issue introduced in 4.18 with commit fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 and fixed in 7.2-rc2 with commit a75d99f46bf21b45965ce39c5cfb3b8bb5ffb1aa 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-72400 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: net/ipv6/seg6.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/715eb12e453df752f1b4baaf972c3acff0ab9402 https://git.kernel.org/stable/c/7247d05c987c3eec4bb7c2306dbd77ecdf3b7c73 https://git.kernel.org/stable/c/071f1a38d7ddbadee29c09b9e3ee0ff3a61e6a0e https://git.kernel.org/stable/c/804bb969f194c93497ba632b98343794c6367fdc https://git.kernel.org/stable/c/0fc7069d39239978130c37ebceaec85c8948d3f1 https://git.kernel.org/stable/c/8dba7a94a269b88e500aafc25ad567ef6a423698 https://git.kernel.org/stable/c/c9961336aa5ff83092f23e33ee86666a9dbd1b2a https://git.kernel.org/stable/c/a75d99f46bf21b45965ce39c5cfb3b8bb5ffb1aa