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 39E56187332 for ; Thu, 27 Feb 2025 02:18:41 +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=1740622722; cv=none; b=Ev4EhExVD/BntwMWOH8qykMypbjqxjY7v3pWin5aHz1PxVX5A7ifk02GsvEPtQMDOQBujALQHeAnoSfU7BBZoj6hGkTx9RGE0D/O5ahzG0h07XtC3+FT9RfOcfzjwFsGiUbbMb9DxqjL4QnOzhocfnGHh16fALYHcSd35hRIYpM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622722; c=relaxed/simple; bh=jqSG3X0gG22zmr7hEvFnNZRAc2hR45y82j6EHLiccec=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UzOSpm1yq3EkwnzR3s2CUSLFkcJ6qznSWxM65aXFDsl92WGT/X3FdR7fNRq4a2b4MBEl5ASd7N9b/S3TuFYPbeKec/vCPTgtUFk3kcbvBTfMKdedgEug6VoaRWT7z+WG9LL9FskbSA5pUAjq6WLmHm0y7mLWoDVkwSnxBt+CGlQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=taLq7H7s; 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="taLq7H7s" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5941C4CEE2; Thu, 27 Feb 2025 02:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622721; bh=jqSG3X0gG22zmr7hEvFnNZRAc2hR45y82j6EHLiccec=; h=From:To:Cc:Subject:Date:Reply-to:From; b=taLq7H7snyah+8k5Bn3sokg2c91H1S9FspeWopyeW0QudKdU0idH9VnFbsRLY6y2Z cUDP9W7M5SKTyVJoie5b2ggVuFp/6BDv3O4UbWbEczFJHZ5Si8wTT/oNAeDeU4VaUt ihE6Vmu5GqF60SgbiDJgWs3CaYytBVi3fCL7PiKI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21758: ipv6: mcast: add RCU protection to mld_newpack() Date: Wed, 26 Feb 2025 18:17:14 -0800 Message-ID: <2025022604-CVE-2025-21758-9f8c@gregkh> X-Mailer: git-send-email 2.48.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=2720; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jqSG3X0gG22zmr7hEvFnNZRAc2hR45y82j6EHLiccec=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7TyucvPWfJc9VpFzVwTSN64uVp9YF53wh2eUra0+Gf 1KJfc7ZEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP5VcKwYM+xhOc1NecL5tS1 Rscs0ll41GB6J8McbknFXtFHnveXLp0k8vxudcyGG68WAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ipv6: mcast: add RCU protection to mld_newpack() mld_newpack() can be called without RTNL or RCU being held. Note that we no longer can use sock_alloc_send_skb() because ipv6.igmp_sk uses GFP_KERNEL allocations which can sleep. Instead use alloc_skb() and charge the net->ipv6.igmp_sk socket under RCU protection. The Linux kernel CVE team has assigned CVE-2025-21758 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.26 with commit b8ad0cbc58f703972e9e37c4e2a8081dd7e6a551 and fixed in 6.1.129 with commit e8af3632a7f2da83e27b083f787bced1faba00b1 Issue introduced in 2.6.26 with commit b8ad0cbc58f703972e9e37c4e2a8081dd7e6a551 and fixed in 6.6.79 with commit 1b91c597b0214b1b462eb627ec02658c944623f2 Issue introduced in 2.6.26 with commit b8ad0cbc58f703972e9e37c4e2a8081dd7e6a551 and fixed in 6.12.16 with commit 25195f9d5ffcc8079ad743a50c0409dbdc48d98a Issue introduced in 2.6.26 with commit b8ad0cbc58f703972e9e37c4e2a8081dd7e6a551 and fixed in 6.13.4 with commit d60d493b0e65647e0335e6a7c4547abcea7df8e9 Issue introduced in 2.6.26 with commit b8ad0cbc58f703972e9e37c4e2a8081dd7e6a551 and fixed in 6.14-rc3 with commit a527750d877fd334de87eef81f1cb5f0f0ca3373 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-21758 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/mcast.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/e8af3632a7f2da83e27b083f787bced1faba00b1 https://git.kernel.org/stable/c/1b91c597b0214b1b462eb627ec02658c944623f2 https://git.kernel.org/stable/c/25195f9d5ffcc8079ad743a50c0409dbdc48d98a https://git.kernel.org/stable/c/d60d493b0e65647e0335e6a7c4547abcea7df8e9 https://git.kernel.org/stable/c/a527750d877fd334de87eef81f1cb5f0f0ca3373