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 6F3E72E54D7 for ; Tue, 7 Oct 2025 15:25:39 +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=1759850739; cv=none; b=RhLLjy00iuZyKd5pcPy10p1X+eNH3AoNx6PUSqMoqRgxjLFecq1U+Nb6ERWy04/tV8OwpyJb9xSKEFm/1ubx9IZtaIJAAx5JbH8r6PaEQxhL/wWsqoCZYdiGpKiOI9IoU9Xehk63trtyOqR12W470jl3yMpafvOQ0xbrIZNQS0U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850739; c=relaxed/simple; bh=X9JGMYouyU/8cSbpg+HjjnP+g92LqSKB3cEe8EGIRr8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qz8tJUXEWbie0H5KqRpz4DvDkU6jLGoT/9ZhxXSFy/KnQooHsDxvlTR+veNbpAb5o4GA/xQODpLTqPRuqher92Taz0uGjw5tkam6VwtA6SqUps8cvZz06omheLFr95JwzLd47i9eEhRwmyUUlwV+x/z2KCKjBNcdGyQ0oS24thk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=b1fWZd98; 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="b1fWZd98" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F01ADC4CEFE; Tue, 7 Oct 2025 15:25:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850739; bh=X9JGMYouyU/8cSbpg+HjjnP+g92LqSKB3cEe8EGIRr8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=b1fWZd98eHPXFLpv4g631gZgddN9M/tpN/Y4NCfeJ1KRHcBDBWCShuFsrPj4VpiWM oTO+3uKSHvf6lDAAH4hoplFOtSeA3EfVJ5JHZP+/Vv3s0Hi9czVvK3Ct7k2dLrnxWp TTj7Bwdpfprk51hVxOv8Ye9K1Vn6Lnn1o6Q2zb9U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53681: bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent Date: Tue, 7 Oct 2025 17:21:40 +0200 Message-ID: <2025100708-CVE-2023-53681-7a5a@gregkh> X-Mailer: git-send-email 2.51.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=3240; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RcFewHO2qaz+SgRZIuqTqvgbrEQ2RNaSnnUCAGzdvew=; b=kA0DAAIRMUfUDdst+ykByyZiAGjlL+XIKuvBvWQ9a1z9QM26othqrHYAwoz3cXRD96Rje9zRu 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmjlL+UACgkQMUfUDdst+yk51QCgk0YB OLovlkeLw0X2u1AVv9f1A1cAnjmVf99Vi7+JCEEHclnDs2UC1z/n 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: bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent In some specific situations, the return value of __bch_btree_node_alloc may be NULL. This may lead to a potential NULL pointer dereference in caller function like a calling chain : btree_split->bch_btree_node_alloc->__bch_btree_node_alloc. Fix it by initializing the return value in __bch_btree_node_alloc. The Linux kernel CVE team has assigned CVE-2023-53681 to this issue. Affected and fixed versions =========================== Issue introduced in 3.10 with commit cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and fixed in 4.19.291 with commit 587b4e8bb5dac682f09280ab35db4632b29d5ac4 Issue introduced in 3.10 with commit cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and fixed in 5.4.253 with commit b070f29a61436f6f8a2e3abc7ea4f4be81695198 Issue introduced in 3.10 with commit cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and fixed in 5.10.188 with commit a4405f6ee03323410d7b10966fd67b35f71b1944 Issue introduced in 3.10 with commit cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and fixed in 5.15.121 with commit f67b0e3081f2a24170280a33ac66f6b112083c03 Issue introduced in 3.10 with commit cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and fixed in 6.1.39 with commit 7ecea5ce3dc17339c280c75b58ac93d8c8620d9f Issue introduced in 3.10 with commit cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and fixed in 6.4.4 with commit 4514847aee18d9391a0cf3aad75d3567c72795a4 Issue introduced in 3.10 with commit cafe563591446cf80bfbc2fe3bc72a2e36cf1060 and fixed in 6.5 with commit 80fca8a10b604afad6c14213fdfd816c4eda3ee4 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-2023-53681 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: drivers/md/bcache/btree.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/587b4e8bb5dac682f09280ab35db4632b29d5ac4 https://git.kernel.org/stable/c/b070f29a61436f6f8a2e3abc7ea4f4be81695198 https://git.kernel.org/stable/c/a4405f6ee03323410d7b10966fd67b35f71b1944 https://git.kernel.org/stable/c/f67b0e3081f2a24170280a33ac66f6b112083c03 https://git.kernel.org/stable/c/7ecea5ce3dc17339c280c75b58ac93d8c8620d9f https://git.kernel.org/stable/c/4514847aee18d9391a0cf3aad75d3567c72795a4 https://git.kernel.org/stable/c/80fca8a10b604afad6c14213fdfd816c4eda3ee4