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 DBC8B1EC001 for ; Mon, 21 Oct 2024 12:17:48 +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=1729513069; cv=none; b=jSEdPIpd5+RMAj1w/gsq9bfN6sXu5UPx5JaWwoCrpFHsMMs+M/unHRJOQ8NvB6qAfIq8Z92/YXFtJ+BeW5MWDh5hT/1+0JqFtVezc0QZCdcswpqhNQ+1T83RsrtZ7sQHlC89IWch2LPaBPhtY//3tTytVcigKThVi8EW171feqY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729513069; c=relaxed/simple; bh=OJYiA9wAR/GJJcCn5qGZGEG2Q68Mz6Jfq39ZAM5zEns=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SbRIsEfPnz+1q+yrBJ/++amnHW2EJUvMUz6yE9tsurvYQDVadd1QZ/RiftLbyWDOnGclvQtQD6tnnB1RkpIIj7/3U+itWYDKBBUjax7LNOUsgjMuxl4F7SC0hJqqE7jMLD/pYaOTrLwaV7t+vNpMBsamzQGQ39s0nBHxG02mu04= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AP2S3UU/; 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="AP2S3UU/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3948C4CEE4; Mon, 21 Oct 2024 12:17:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729513068; bh=OJYiA9wAR/GJJcCn5qGZGEG2Q68Mz6Jfq39ZAM5zEns=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AP2S3UU/qJXBDUdS9pjlg5rk7O+FMJXwCHW3z4bE7yxDZQub3ItOBABwApCbmKMr2 8+Gvtupi17gCGsEneDY9AuktK/REIcPRJFp0n0OIkBCF4shh+xib4t3vjwmgaa/CQ2 kCp8Rh1jXe5W7cmLG+OeTjYV1CREVY/DZn/b1/5s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47757: nilfs2: fix potential oob read in nilfs_btree_check_delete() Date: Mon, 21 Oct 2024 14:16:36 +0200 Message-ID: <2024102115-CVE-2024-47757-2b1e@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=3059; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OJYiA9wAR/GJJcCn5qGZGEG2Q68Mz6Jfq39ZAM5zEns=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlibvxLtzzS4ts8b7epsN4u09Oih7SuNsQmhbznZ3/xy 0N3362QjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI1y6GBVNPlOVNZXFW15il JunzI1TZyZ6LmWEOz6IbZzb/y/HurJ5w22I+3/p2/mkzAA== 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: nilfs2: fix potential oob read in nilfs_btree_check_delete() The function nilfs_btree_check_delete(), which checks whether degeneration to direct mapping occurs before deleting a b-tree entry, causes memory access outside the block buffer when retrieving the maximum key if the root node has no entries. This does not usually happen because b-tree mappings with 0 child nodes are never created by mkfs.nilfs2 or nilfs2 itself. However, it can happen if the b-tree root node read from a device is configured that way, so fix this potential issue by adding a check for that case. The Linux kernel CVE team has assigned CVE-2024-47757 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit 17c76b0104e4 and fixed in 5.10.227 with commit d20674f31626 Issue introduced in 2.6.30 with commit 17c76b0104e4 and fixed in 5.15.168 with commit c4f8554996e8 Issue introduced in 2.6.30 with commit 17c76b0104e4 and fixed in 6.1.113 with commit a8abfda768b9 Issue introduced in 2.6.30 with commit 17c76b0104e4 and fixed in 6.6.54 with commit 257f9e5185eb Issue introduced in 2.6.30 with commit 17c76b0104e4 and fixed in 6.10.13 with commit a33e967b681e Issue introduced in 2.6.30 with commit 17c76b0104e4 and fixed in 6.11.2 with commit c4cbcc64bb31 Issue introduced in 2.6.30 with commit 17c76b0104e4 and fixed in 6.12-rc1 with commit f9c96351aa67 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-47757 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: fs/nilfs2/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/d20674f31626e0596ae4c1d9401dfb6739b81b58 https://git.kernel.org/stable/c/c4f8554996e8ada3be872dfb8f60e93bcf15fb27 https://git.kernel.org/stable/c/a8abfda768b9f33630cfbc4af6c4214f1e5681b0 https://git.kernel.org/stable/c/257f9e5185eb6de83377caea686c306e22e871f2 https://git.kernel.org/stable/c/a33e967b681e088a125b979975c93e3453e686cd https://git.kernel.org/stable/c/c4cbcc64bb31e67e02940ce060cc77f7180564cf https://git.kernel.org/stable/c/f9c96351aa6718b42a9f42eaf7adce0356bdb5e8