Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BBA983E0241 for ; Fri, 24 Apr 2026 14:48:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777042128; cv=none; b=LXIRMU16PPah4RmbpxEXBh0EOgCpD4aac7la9W7ZmoXwq8TKmITXbAjPngQPpb3oTNaYCJndcJ0cUTmSp0B7Gctq3PKEge3gYO8Wn1hcA5Do6NHMBWp/HfQ5+E72+Uw/IWobVGPPQs6L12gjI9vuoNkqZxndbo7Q2v81iFWwCM8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777042128; c=relaxed/simple; bh=w8JAplmvsqA/CoZw/XBwKkXGaoCpXXWPYtT6iEXjPoA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HQrfKhcHc0kxR+VjBg3y8Y9wLZDGaM7bpTW/EB7HqA3/8iNW1AjnpB6Mx069QSnOzTAI80sjti5zA4mnZAhxyKHTdcqwEbHgAlyxOA8oDqarVCuXc1VXXaxmNRAH5HKP1YHrvgZhjmZHGTwfCKGQ3m0i5/O+VSzY39pUsaN9cvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Zeia9pOE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Zeia9pOE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55064C19425; Fri, 24 Apr 2026 14:48:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777042128; bh=w8JAplmvsqA/CoZw/XBwKkXGaoCpXXWPYtT6iEXjPoA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Zeia9pOEUrasHuiWNTFZ2DbNgHf5wyFvVKAYfdnvJ3dlJ4nsV1vsw6czd15YeziAj vVTy83iYyHIOS0fFrxO/a0m3uPdaeXFpVNQC5zP21ujheDxYRSwdv3Hyku2Px0tfI8 NCmruKoIIQCXUkDZWcdnkI5nSz55zgmLUb1kJIU4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31668: seg6: separate dst_cache for input and output paths in seg6 lwtunnel Date: Fri, 24 Apr 2026 16:46:30 +0200 Message-ID: <2026042406-CVE-2026-31668-50e7@gregkh> X-Mailer: git-send-email 2.53.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=3667; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2/7J8Xo0lWGzxAC+7Z+ND9XabrxGuOgJIJELDh4fCS4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvm/SCOrc8fGQ+9VaTBvdN+0ueXw4XBl7zr7mvonn/4 IND3bfaO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiS98zzPfy1NNrvrnEsyGC 2/tP3NK0mUtb/zHMr5B4aH7uX4/LdXfl3/7v8tcZi71ZAwA= 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: separate dst_cache for input and output paths in seg6 lwtunnel The seg6 lwtunnel uses a single dst_cache per encap route, shared between seg6_input_core() and seg6_output_core(). These two paths can perform the post-encap SID lookup in different routing contexts (e.g., ip rules matching on the ingress interface, or VRF table separation). Whichever path runs first populates the cache, and the other reuses it blindly, bypassing its own lookup. Fix this by splitting the cache into cache_input and cache_output, so each path maintains its own cached dst independently. The Linux kernel CVE team has assigned CVE-2026-31668 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit 6c8702c60b88651072460f3f4026c7dfe2521d12 and fixed in 5.10.253 with commit 1dec91d3b1cefb82635761b7812154af3ef46449 Issue introduced in 4.10 with commit 6c8702c60b88651072460f3f4026c7dfe2521d12 and fixed in 5.15.203 with commit 750569d6987a0ff46317a4b86eb3907e296287bf Issue introduced in 4.10 with commit 6c8702c60b88651072460f3f4026c7dfe2521d12 and fixed in 6.1.169 with commit 57d0374d14fa667dec6952173b93e7e84486d5c9 Issue introduced in 4.10 with commit 6c8702c60b88651072460f3f4026c7dfe2521d12 and fixed in 6.6.135 with commit 84d458018b147176b259347103fccb7e93abd2b1 Issue introduced in 4.10 with commit 6c8702c60b88651072460f3f4026c7dfe2521d12 and fixed in 6.12.82 with commit 6305ad032b03d2ea4181b953a66e19a9a6ed053c Issue introduced in 4.10 with commit 6c8702c60b88651072460f3f4026c7dfe2521d12 and fixed in 6.18.23 with commit fb56de5d99218de49d5d43ef3a99e062ecd0f9a1 Issue introduced in 4.10 with commit 6c8702c60b88651072460f3f4026c7dfe2521d12 and fixed in 6.19.13 with commit 17d87d42874f5d6c1a0ccc6d9190dfe82a9a7a6a Issue introduced in 4.10 with commit 6c8702c60b88651072460f3f4026c7dfe2521d12 and fixed in 7.0 with commit c3812651b522fe8437ebb7063b75ddb95b571643 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-31668 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_iptunnel.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/1dec91d3b1cefb82635761b7812154af3ef46449 https://git.kernel.org/stable/c/750569d6987a0ff46317a4b86eb3907e296287bf https://git.kernel.org/stable/c/57d0374d14fa667dec6952173b93e7e84486d5c9 https://git.kernel.org/stable/c/84d458018b147176b259347103fccb7e93abd2b1 https://git.kernel.org/stable/c/6305ad032b03d2ea4181b953a66e19a9a6ed053c https://git.kernel.org/stable/c/fb56de5d99218de49d5d43ef3a99e062ecd0f9a1 https://git.kernel.org/stable/c/17d87d42874f5d6c1a0ccc6d9190dfe82a9a7a6a https://git.kernel.org/stable/c/c3812651b522fe8437ebb7063b75ddb95b571643