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 BB8BF189B8D for ; Thu, 27 Feb 2025 02:18:42 +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=1740622723; cv=none; b=GSzD5NXVN4UTzrtb2gpYqOLH0VbqC7e6Pso1D5OQgVrPSz3wQCzvuNLuFl/UQIlWkndE1PVoUJX8u5shunloF52CX4WsAjMUuH2vnrIiIDexagV91dzaBaZoLLutGRLgHLVQTDkOlPbwW98WZKmZSIo4pkqncQYRQbih+kW6aHs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740622723; c=relaxed/simple; bh=rImhoqYCv5Qh/YOUCUdn5V0uwYOgBqVnPdxgXx2DccE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TjWBdYhiiB5JKfsXK/Hki6fAFJE+J7PMdTGuSDFzP6hxTU/Sx6ZgFlEq/uSawT4JarzkIyIELZLzfJ5lOvibzoE56UTaAS4UuEwPhpiV+4DAy8rV14enVYQTkQYehPOCE7+jQXLpTXZv3vRiag07YzYHl35N/wtkIW6vdFqmAXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IOwXBEu7; 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="IOwXBEu7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86E36C4CEE8; Thu, 27 Feb 2025 02:18:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740622722; bh=rImhoqYCv5Qh/YOUCUdn5V0uwYOgBqVnPdxgXx2DccE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IOwXBEu7x42F9uHHyl7YdfdXm2t/KMj/lzqeCIgZKc6xBRdXcY7jHITKRqPd0IGX7 OVzpkDF1QayDBotAqfmu4UxoIorg7TT/80rxMKOt/djKUFDUs2ISanr0ayM4Uxy1cH e/D+J0LQXskxHoZeL7y/75zXjIqhU6xvOe2mOjD0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21759: ipv6: mcast: extend RCU protection in igmp6_send() Date: Wed, 26 Feb 2025 18:17:15 -0800 Message-ID: <2025022604-CVE-2025-21759-ad7c@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=2587; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rImhoqYCv5Qh/YOUCUdn5V0uwYOgBqVnPdxgXx2DccE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7TyvktHasDJ6wJnX7kcQ/4i1LLuZXd1XdEL3jzCP7K qvuAH9gRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk6jrDgt3PWCMfL73M4hX6 drHyi7Sg56c/1jDMLxbSn64kafEq+ln+eYG7RaWKrhptAA== 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: extend RCU protection in igmp6_send() igmp6_send() can be called without RTNL or RCU being held. Extend RCU protection so that we can safely fetch the net pointer and avoid a potential UAF. 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-21759 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.26 with commit b8ad0cbc58f703972e9e37c4e2a8081dd7e6a551 and fixed in 6.6.79 with commit 81b25a07ebf53f9ef4ca8f3d96a8ddb94561dd5a Issue introduced in 2.6.26 with commit b8ad0cbc58f703972e9e37c4e2a8081dd7e6a551 and fixed in 6.12.16 with commit 0bf8e2f3768629d437a32cb824149e6e98254381 Issue introduced in 2.6.26 with commit b8ad0cbc58f703972e9e37c4e2a8081dd7e6a551 and fixed in 6.13.4 with commit 8e92d6a413feaf968a33f0b439ecf27404407458 Issue introduced in 2.6.26 with commit b8ad0cbc58f703972e9e37c4e2a8081dd7e6a551 and fixed in 6.14-rc3 with commit 087c1faa594fa07a66933d750c0b2610aa1a2946 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-21759 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/81b25a07ebf53f9ef4ca8f3d96a8ddb94561dd5a https://git.kernel.org/stable/c/0bf8e2f3768629d437a32cb824149e6e98254381 https://git.kernel.org/stable/c/8e92d6a413feaf968a33f0b439ecf27404407458 https://git.kernel.org/stable/c/087c1faa594fa07a66933d750c0b2610aa1a2946