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 0F3D6D530 for ; Wed, 9 Oct 2024 14:14:28 +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=1728483269; cv=none; b=m3QDbSXCMNlwlSY/trjcF6LfYDAvsO8QOiDzRB6SQh1ctCG60E9WpUMc8QDvsXHiM055l8hS6hSHx4mJmj5hrqDXxFrbVm2JfxoXY0P1sSPVFWABRBxTS4NgG6WCMqftePW6POpxTwsbt0q5twYiOJ4mJnxW8QX2g0OsMyQFBi0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728483269; c=relaxed/simple; bh=1W5ADA1Liab2IFowFjbeA6ChVAfbuF+yvvYB+Tud1pw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=l3O8hf6Cz50TNx6Ka3NQYMjaMc0ZT0JHCVX7N2QdexN3/q56zw654KBhYAbzE6lneoHNWcdaq5FOdlAdQ6MADpmO4yBE3kRKv1HmpHT7X9JG3EIwrlESYjvNaGn7m7JoLy9HHRKtn7g59o8u622tKYc6SQC853CTAKXkHc17vKc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=G9UZZAk5; 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="G9UZZAk5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07ED9C4CEC3; Wed, 9 Oct 2024 14:14:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1728483268; bh=1W5ADA1Liab2IFowFjbeA6ChVAfbuF+yvvYB+Tud1pw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=G9UZZAk57UzIIzoKoVlyBCxtEzObVrElmsiN4maQEUMJUb9s1PhyjKeXBDShhaqsg lHdiF7R/SOPLRoaHf/fx57ZMDYGSwwxlrPdhU9A3ZBeqU7msOUCqoK3iZ2O2veEScz icLAcoal2jkNkKJHz6iAaSiYLwdSr0FFzH9z6Gtg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47668: lib/generic-radix-tree.c: Fix rare race in __genradix_ptr_alloc() Date: Wed, 9 Oct 2024 16:14:10 +0200 Message-ID: <2024100906-CVE-2024-47668-6b53@gregkh> X-Mailer: git-send-email 2.47.0 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=2525; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1W5ADA1Liab2IFowFjbeA6ChVAfbuF+yvvYB+Tud1pw=; b=owGbwMvMwCRo6H6F97bub03G02pJDOls/es+chWfyWxP2blr7/FjB3aaXNfZGcSm2Rl98Y7/r Hfa/+cd7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJlPkwzA+6OqHpkrdOx+E/ yppzDGboq/1Zt4VhwbFq1W1e7HF+PpbL+l44P2g6myEsDwA= 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: lib/generic-radix-tree.c: Fix rare race in __genradix_ptr_alloc() If we need to increase the tree depth, allocate a new node, and then race with another thread that increased the tree depth before us, we'll still have a preallocated node that might be used later. If we then use that node for a new non-root node, it'll still have a pointer to the old root instead of being zeroed - fix this by zeroing it in the cmpxchg failure path. The Linux kernel CVE team has assigned CVE-2024-47668 to this issue. Affected and fixed versions =========================== Fixed in 5.4.284 with commit 0f27f4f44539 Fixed in 5.10.226 with commit 99418ec776a3 Fixed in 5.15.167 with commit ad5ee9feebc2 Fixed in 6.1.110 with commit ebeff038744c Fixed in 6.6.51 with commit d942e855324a Fixed in 6.10.10 with commit 0f078f8ca93b Fixed in 6.11 with commit b2f11c6f3e1f 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-2024-47668 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: lib/generic-radix-tree.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/0f27f4f445390cb7f73d4209cb2bf32834dc53da https://git.kernel.org/stable/c/99418ec776a39609f50934720419e0b464ca2283 https://git.kernel.org/stable/c/ad5ee9feebc2eb8cfc76ed74a2d6e55343b0e169 https://git.kernel.org/stable/c/ebeff038744c498a036e7a92eb8e433ae0a386d7 https://git.kernel.org/stable/c/d942e855324a60107025c116245095632476613e https://git.kernel.org/stable/c/0f078f8ca93b28a34e20bd050f12cd4efeee7c0f https://git.kernel.org/stable/c/b2f11c6f3e1fc60742673b8675c95b78447f3dae