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 80EC71411FD for ; Mon, 24 Jun 2024 13:57:07 +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=1719237427; cv=none; b=Uy5ckJv/1eNgyoPQl6ZxM5t7l906DSrajrHhiT0UfwISSfDr7pEf5R/l7A/ilhWz2UzaQpVo806Bn8SL+f80kdaO5O0UJ/yGmslpyrINQlC8TMl1jNMu4ug7BnE3C3KXkbRPHG8oagKJ8V4PfFeXm+wxwLdDEm8CVRN31J5kK1Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719237427; c=relaxed/simple; bh=fzCOmN5tor6AYTlTcVVm8Jb3cYi3izNk32Z2whJ9/EM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EfpZy16dRbeFLshh3yHnhlEKzYqrbYKv8bxfL3vR1LC8Nzi9Ntk1b8xJIPYjjzA/R5dMrKZ+aVlfX/KREc+EK6Gw2n21bLIubMSR1gcQ8bYdzgRAWYzDICu0P8OPl73HYbB0Mtn0H/aAe09QrTIMyC7ZbXVCn/B0lNpvM7A/o/c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LzoDvknm; 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="LzoDvknm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A643EC2BBFC; Mon, 24 Jun 2024 13:57:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1719237427; bh=fzCOmN5tor6AYTlTcVVm8Jb3cYi3izNk32Z2whJ9/EM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LzoDvknmT/cQKco6om7E8DkJUinVZVqQCon3TUEL/bCfiqNkrbOr4MhE7qT18XZUv nmv9x75C3B2/IALASya36Pov/86f0UXSi990k37JeEzGTqZYnLDb9AfdACudQZ9mbQ yGl83Cp3PRjhhqv2h8omiyLbpoGK/3uVxqC0F1JY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-34027: f2fs: compress: fix to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock Date: Mon, 24 Jun 2024 15:57:00 +0200 Message-ID: <2024062458-CVE-2024-34027-b9ea@gregkh> X-Mailer: git-send-email 2.45.2 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=2596; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fzCOmN5tor6AYTlTcVVm8Jb3cYi3izNk32Z2whJ9/EM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmV1VqJv35s8ojYG1V0g1f3EaNTkuwLlt1injqrS/dtW 7ciNti/I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYyYw/DbPYfsxnmFDuHPTqY q9JYZb4gY5t/CMM8tf+Cosq/vk9e4ci2hCk53yzyYUELAA== 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: f2fs: compress: fix to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock It needs to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock to avoid racing with checkpoint, otherwise, filesystem metadata including blkaddr in dnode, inode fields and .total_valid_block_count may be corrupted after SPO case. The Linux kernel CVE team has assigned CVE-2024-34027 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit c75488fb4d82 and fixed in 5.10.219 with commit a6e1f7744e9b Issue introduced in 5.8 with commit c75488fb4d82 and fixed in 5.15.161 with commit b5bac43875aa Issue introduced in 5.8 with commit c75488fb4d82 and fixed in 6.1.93 with commit 5d47d6388373 Issue introduced in 5.8 with commit c75488fb4d82 and fixed in 6.6.33 with commit 329edb7c9e3b Issue introduced in 5.8 with commit c75488fb4d82 and fixed in 6.9.4 with commit 69136304fd14 Issue introduced in 5.8 with commit c75488fb4d82 and fixed in 6.10-rc1 with commit 0a4ed2d97cb6 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-34027 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/f2fs/file.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/a6e1f7744e9b84f86a629a76024bba8468aa153b https://git.kernel.org/stable/c/b5bac43875aa27ec032dbbb86173baae6dce6182 https://git.kernel.org/stable/c/5d47d63883735718825ca2efc4fca6915469774f https://git.kernel.org/stable/c/329edb7c9e3b6ca27e6ca67ab1cdda1740fb3a2b https://git.kernel.org/stable/c/69136304fd144144a4828c7b7b149d0f80321ba4 https://git.kernel.org/stable/c/0a4ed2d97cb6d044196cc3e726b6699222b41019