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 17AE4129E74 for ; Wed, 1 May 2024 12:58:36 +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=1714568316; cv=none; b=QCVBFiD0UUY8yvI7whqAC9mIa/f5YZtaHbJ8n82RWi/EWAMPJayDMARQjCLtzDPL/az1PK4vet6aXoRm7+8ndj1h6o508UX8rjblqC4LhxoTl62BTg+QJU5NsmaDTxoxHoqOHIn9gEz1QjQHfphKGUy7+wBzaNPVHz9+Y+L9XXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568316; c=relaxed/simple; bh=X/Fyv1FjgEjA+X7w2ns7pd4lfen4RKMy4bMnGYqEbVw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=exL9OBWfrHwr0d8PtjytkS6ISDaIpy4D9NENhqoEpxSPxX8XZMMzDQUfGg/4X9xB76uI4fzeoRM3W15M6vd3W9+GpIeFHPOKCKHePNqd6gRz084bYnjVodSpFkY9zmrKX9n2Ns5VlnCZtruNG9DkBmM9XpOT7ktgZ2thgdAj/gk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HY14ydfD; 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="HY14ydfD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92E92C4AF18; Wed, 1 May 2024 12:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568316; bh=X/Fyv1FjgEjA+X7w2ns7pd4lfen4RKMy4bMnGYqEbVw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HY14ydfDNqcRcbTe3m6C1JFmjmP+UII0Y7dTbXK0G7kPLBryqV+9GLJgxIrw81Hk1 +YWUBrX5o2i0Qhgf86fBTJEziEiVuGKNs7qXbufy5sgfdXUnCw8/BbYHaRzP2yljlx Ua5qmlUtdVXWIJwup9oHMNzfRfmchegrlG0D7Os8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27034: f2fs: compress: fix to cover normal cluster write with cp_rwsem Date: Wed, 1 May 2024 14:57:19 +0200 Message-ID: <2024050111-CVE-2024-27034-5872@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=2610; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=X/Fyv1FjgEjA+X7w2ns7pd4lfen4RKMy4bMnGYqEbVw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGNuqJU196BtUov+nS2OpRz+73IDRS+ozCoRmii2O4k pc8K7bviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIkYfmeYX+W9bs4K3sOJ7u1P 077NiUjU5nP8xLBgfteVuQfe2Cz662SvWD3/ZfyPE06sAA== 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 normal cluster write with cp_rwsem When we overwrite compressed cluster w/ normal cluster, we should not unlock cp_rwsem during f2fs_write_raw_pages(), otherwise data will be corrupted if partial blocks were persisted before CP & SPOR, due to cluster metadata wasn't updated atomically. The Linux kernel CVE team has assigned CVE-2024-27034 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 4c8ff7095bef and fixed in 5.15.153 with commit 7d420eaaa18e Issue introduced in 5.6 with commit 4c8ff7095bef and fixed in 6.1.83 with commit 542c8b3c774a Issue introduced in 5.6 with commit 4c8ff7095bef and fixed in 6.6.23 with commit 75abfd61392b Issue introduced in 5.6 with commit 4c8ff7095bef and fixed in 6.7.11 with commit 2b1b14d9fc94 Issue introduced in 5.6 with commit 4c8ff7095bef and fixed in 6.8.2 with commit 52982edfcefd Issue introduced in 5.6 with commit 4c8ff7095bef and fixed in 6.9-rc1 with commit fd244524c2cf 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-27034 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/compress.c fs/f2fs/data.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/7d420eaaa18ec8e2bb4eeab8c65c00492ef6f416 https://git.kernel.org/stable/c/542c8b3c774a480bfd0804291a12f6f2391b0cd1 https://git.kernel.org/stable/c/75abfd61392b1db391bde6d738a30d685b843286 https://git.kernel.org/stable/c/2b1b14d9fc94b8feae20808684c8af28ec80f45b https://git.kernel.org/stable/c/52982edfcefd475cc34af663d5c47c0cddaa5739 https://git.kernel.org/stable/c/fd244524c2cf07b5f4c3fe8abd6a99225c76544b