CVE-2026-46175

f2fs: fix fsck inconsistency caused by FGGC of node block

State
Published
Severity
7.1 High
Published
May 28, 2026
Updated
Oct 30, 2026
Reserved
May 13, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.1 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f to before 3b7a0bbb3444addddb139f42a74ab4492052fa27Affected
  • da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f to before d1820a5814eadb8e63ab6c7c8d04e28ce49836beAffected
  • da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f to before 8ac93964658d0649337dcb3f6e38d77f8cdd86f3Affected
  • da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f to before 8be551f538dc5b64183e27bd45a7a0795263f760Affected
  • da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f to before e7c6d30169b03307d27c4479563df79c08f3a746Affected
  • da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f to before c3e238bd1f56993f205ef83889d406dfeaf717a8Affected
LinuxLinux
  • 4.7Affected
  • before 4.7Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.114 through 6.12.*Not affected
  • 6.18.30 through 6.18.*Not affected
  • 7.0.7 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.