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 CBB9043AC3 for ; Sat, 24 Feb 2024 14:57:15 +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=1708786635; cv=none; b=AQMcuzjTYmeZKSccsPxmkWFl6GuarXQLFznX6rMBlP29Slrqe7bGc1zeaSFOukO54j2mQvoJu3aYgf+91kbsaDNA4SDR6hQ9Utlaq51JTLm3R8PlcuPkr+lwiBe3vH8lk2NwqC9ggV1NuWBcPMQ5GpeSJa4u8NXlEGmUsR1G5Eg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708786635; c=relaxed/simple; bh=9ssTr1MVtlDd3gMKy075dS6DgjnkNLp5EYTg9kunpao=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e+GV+ombv1wACKj1LPBXO8QTFgfZdzTR1CkN1HFN+AR8Jn8MaymMdTUXVEDD7rR9m2tyPaFd162bd3BXorGm2f6Br0VUgogKXWSRU8DRsjzITy2PWe8Cun9ZLERGbLiwkByIk1DzaXEjcBQZnIBg47Iyklcgzt/yRqJHvjW6oy0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IH0KHxXd; 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="IH0KHxXd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44292C433C7; Sat, 24 Feb 2024 14:57:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708786635; bh=9ssTr1MVtlDd3gMKy075dS6DgjnkNLp5EYTg9kunpao=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IH0KHxXdYEinN1zzLvA6ZV0ImpoAPZu9730zjsvZEeXipF2GRqeZmIulgaYt7PjIo nQl38SsWXCNvDhUFojghXJucd6CB4B4CL/JEilhm/ThOnnUzt+OEyHG2WluKsu7l6B aKhlYVYs3vXbmpllu8oC97rJyzB8HL8/OVBWQ8qk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26601: ext4: regenerate buddy after block freeing failed if under fc replay Date: Sat, 24 Feb 2024 15:57:10 +0100 Message-ID: <2024022411-CVE-2024-26601-b6ac@gregkh> X-Mailer: git-send-email 2.44.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=2340; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9ssTr1MVtlDd3gMKy075dS6DgjnkNLp5EYTg9kunpao=; b=owGbwMvMwCRo6H6F97bub03G02pJDKm3mI83BXRcd131+egyo+MzpIVs/tTyZrTM/2zBGbj8l ODFnv6ejlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIfxuGeRbLwxdo/i69GDgr YvkVqSM+PZ4pjAzzq1+uKb7PIThXeh735Nwph50LNPn9AA== 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: ext4: regenerate buddy after block freeing failed if under fc replay This mostly reverts commit 6bd97bf273bd ("ext4: remove redundant mb_regenerate_buddy()") and reintroduces mb_regenerate_buddy(). Based on code in mb_free_blocks(), fast commit replay can end up marking as free blocks that are already marked as such. This causes corruption of the buddy bitmap so we need to regenerate it in that case. The Linux kernel CVE team has assigned CVE-2024-26601 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 6bd97bf273bd and fixed in 6.1.78 with commit 78327acd4cdc Issue introduced in 5.11 with commit 6bd97bf273bd and fixed in 6.6.17 with commit ea42d6cffb0d Issue introduced in 5.11 with commit 6bd97bf273bd and fixed in 6.7.5 with commit 6b0d48647935 Issue introduced in 5.11 with commit 6bd97bf273bd and fixed in 6.8-rc3 with commit c9b528c35795 Please see https://www.kernel.org or 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-26601 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/ext4/mballoc.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/78327acd4cdc4a1601af718b781eece577b6b7d4 https://git.kernel.org/stable/c/ea42d6cffb0dd27a417f410b9d0011e9859328cb https://git.kernel.org/stable/c/6b0d48647935e4b8c7b75d1eccb9043fcd4ee581 https://git.kernel.org/stable/c/c9b528c35795b711331ed36dc3dbee90d5812d4e