Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 7A6A63B27ED for ; Thu, 28 May 2026 09:41:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961273; cv=none; b=b1w4OiCddb5/0pTUEY6ailVz27lGhMDfrR72tctt6I24OD+CllFd/MNXOUIzoWmJknpYT9nRbT+ftMxxw2A3adu+B41GQEWOAyDGdiVbI7fc32bELmHPBYCenSzj638yf+8r2+MOApLWZu7qLuD9GnfzJwShGOsKSLjwLGSG44s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779961273; c=relaxed/simple; bh=SmtCEduHOIXiMEYH4xR6+fOZVyMhRFx0xTFkzIEBEGc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fHsTthFp7BlJZT38dFXmXTvhUbnVR4Jd4JE+ezD7UKHdTDPfivHkxL2F1/ZVfR7Jy+3UhBReuT/Xz1kuUHpoAPCSzQ3l1jnk2cEJEgdOK0PDQcNghqavfmJPtXp/59sVP9dTBD6SxMxkNM98QKY0fp7iQAvj6EvOSsB9bAcm2IU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=i2AmnQPO; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="i2AmnQPO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D1261F00A3A; Thu, 28 May 2026 09:41:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779961269; bh=M/I9M2Ki4Ao1/olabU0W60m7nLLDbsrXY1+h2XT9oD4=; h=From:To:Cc:Subject:Date:Reply-To; b=i2AmnQPOBNLGKbLlgB4aHcknFW5qurEmYD1EKVLkQ2+j5RnrKey9I9HrvuON1Q8dg Fk/WhPb8tlcn17GOTZJcEoE2n2Hj9jvYTd4QRcyOLBqjROU+Sjv+x8ra6Q6hSOYHpV H/NORznDp0ebNCJZD3GbeuNEJGh3DnEhw5kjs3GM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46175: f2fs: fix fsck inconsistency caused by FGGC of node block Date: Thu, 28 May 2026 11:37:20 +0200 Message-ID: <2026052828-CVE-2026-46175-8fc4@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2929; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gBxYgknY7U7t5jpzjfJIiORXZBvd3HlK/OYETU8EAJA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkSPHMkPrQ535u823WS07vpF0PONTdUX9A4nSpmyfX0e yuL2fqTHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARNgGGBSc6J75IOML+ds/H Qq2TqqxrfjmFTmFYcCXjzYsHFl/7a/8vCNOavZ9hivScAwA= 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: f2fs: fix fsck inconsistency caused by FGGC of node block During FGGC node block migration, fsck may incorrectly treat the migrated node block as fsync-written data. The reproduction scenario: root@vm:/mnt/f2fs# seq 1 2048 | xargs -n 1 ./test_sync // write inline inode and sync root@vm:/mnt/f2fs# rm -f 1 root@vm:/mnt/f2fs# sync root@vm:/mnt/f2fs# f2fs_io gc_range // move data block in sync mode and not write CP SPO, "fsck --dry-run" find inode has already checkpointed but still with DENT_BIT_SHIFT set The root cause is that GC does not clear the dentry mark and fsync mark during node block migration, leading fsck to misinterpret them as user-issued fsync writes. In BGGC mode, node block migration is handled by f2fs_sync_node_pages(), which guarantees the dentry and fsync marks are cleared before writing. This patch move the set/clear of the fsync|dentry marks into __write_node_folio to make the logic clearer, and ensures the fsync|dentry mark is cleared in FGGC. The Linux kernel CVE team has assigned CVE-2026-46175 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f and fixed in 6.18.30 with commit 8be551f538dc5b64183e27bd45a7a0795263f760 Issue introduced in 4.7 with commit da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f and fixed in 7.0.7 with commit e7c6d30169b03307d27c4479563df79c08f3a746 Issue introduced in 4.7 with commit da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f and fixed in 7.1-rc1 with commit c3e238bd1f56993f205ef83889d406dfeaf717a8 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-2026-46175 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/node.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/8be551f538dc5b64183e27bd45a7a0795263f760 https://git.kernel.org/stable/c/e7c6d30169b03307d27c4479563df79c08f3a746 https://git.kernel.org/stable/c/c3e238bd1f56993f205ef83889d406dfeaf717a8