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 0958E28B3E8 for ; Thu, 10 Jul 2025 07:44:24 +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=1752133464; cv=none; b=hLf+n7JQWZtPRayPkY1P/CY4c7PdDjCfYyRhOBsS7QZGrVP3NRTjlnk7Jk+XOo9srimZJPkKnnRtJQ+C1xPXRwST4501PCNlaTkCJoN6yiHj3AukqJCHsDlhqD2GrEvZLqFiBSuqQzlEvQzgMu3OWs8bSpBl+9Y0BcP6/+bRHP4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752133464; c=relaxed/simple; bh=/MXgnc2igj9aI6IfG2t7GcrZ6gQXx/4Q5a1L9lfsKBE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EgTr9EneoaM3W0tqOLYv05FYWLnTcfZKDbkwUV6zKW6DR3LSEj4x05i9oZoG3eB7aAGPWT5dZwwvvvc2K8+fCgLlGM/OQlUusQm3a+HMjA0z2eHtv9ED2QfLGJamEGJo0brFwadyInxJNE/YxU9mIROSkqgTTIB0B8nid3nUw54= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=p78YJB8l; 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="p78YJB8l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BEFCC4CEF5; Thu, 10 Jul 2025 07:44:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752133463; bh=/MXgnc2igj9aI6IfG2t7GcrZ6gQXx/4Q5a1L9lfsKBE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=p78YJB8lhqMCCpe6xhcx+EKVZYmWKYgtCdWIHtUfrlVsd9AQbDAMbUet8NnDlXZ3A +DPGjtnWri+/EZ8fhEog+YnBdrOfGRM1FOSDaaNrGj4vYb5d1TxaDYE0+Gr589mD5Z YJ0f875fUbby9kRiNur8A5JKf+hfYzBlCy4DnPyU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38310: seg6: Fix validation of nexthop addresses Date: Thu, 10 Jul 2025 09:42:51 +0200 Message-ID: <2025071014-CVE-2025-38310-6184@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2988; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XP9uCt0kEYJiqz0PqAqEFe5nA4P2zZAwej2ZnyQ29hE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBn5edd3svtMX7lL/1Xji0r3ndOtxGJYV3WXcPnqmKgx/ bAwmSHYEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNRimdYcOFVFdPpta67lrFd 23Pd1c2G+8klaYb58RdT7+eYWoqKp92eYPXxsVVKy3MdAA== 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 validation of nexthop addresses The kernel currently validates that the length of the provided nexthop address does not exceed the specified length. This can lead to the kernel reading uninitialized memory if user space provided a shorter length than the specified one. Fix by validating that the provided length exactly matches the specified one. The Linux kernel CVE team has assigned CVE-2025-38310 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit d1df6fd8a1d22d37cffa0075ab8ad423ce656777 and fixed in 5.15.186 with commit 668923c474608dd9ebce0fbcc41bd8a27aa73dd6 Issue introduced in 4.14 with commit d1df6fd8a1d22d37cffa0075ab8ad423ce656777 and fixed in 6.1.142 with commit cef33a86bcb04ecf4dc10c56f6c42ee9d1c54bac Issue introduced in 4.14 with commit d1df6fd8a1d22d37cffa0075ab8ad423ce656777 and fixed in 6.6.94 with commit d2507aeea45b3c5aa24d5daae0cf3db76895c0b7 Issue introduced in 4.14 with commit d1df6fd8a1d22d37cffa0075ab8ad423ce656777 and fixed in 6.12.34 with commit d5d9fd13bc19a3f9f2a951c5b6e934d84205789e Issue introduced in 4.14 with commit d1df6fd8a1d22d37cffa0075ab8ad423ce656777 and fixed in 6.15.3 with commit cd4cd09810211fa23609c5c1018352e9e1cd8e5a Issue introduced in 4.14 with commit d1df6fd8a1d22d37cffa0075ab8ad423ce656777 and fixed in 6.16-rc1 with commit 7632fedb266d93ed0ed9f487133e6c6314a9b2d1 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-2025-38310 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_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/668923c474608dd9ebce0fbcc41bd8a27aa73dd6 https://git.kernel.org/stable/c/cef33a86bcb04ecf4dc10c56f6c42ee9d1c54bac https://git.kernel.org/stable/c/d2507aeea45b3c5aa24d5daae0cf3db76895c0b7 https://git.kernel.org/stable/c/d5d9fd13bc19a3f9f2a951c5b6e934d84205789e https://git.kernel.org/stable/c/cd4cd09810211fa23609c5c1018352e9e1cd8e5a https://git.kernel.org/stable/c/7632fedb266d93ed0ed9f487133e6c6314a9b2d1