CVE-2026-46175: f2fs: fix fsck inconsistency caused by FGGC of node block
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 ./testsync // write inline inode and sync root@vm:/mnt/f2fs# rm -f 1 root@vm:/mnt/f2fs# sync root@vm:/mnt/f2fs# f2fsio gcrange // move data block in sync mode and not write CP SPO, "fsck --dry-run" find inode has already checkpointed but still with DENTBITSHIFT 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 f2fssyncnodepages(), which guarantees the dentry and fsync marks are cleared before writing.
This patch move the set/clear of the fsync|dentry marks into writenodefolio to make the logic clearer, and ensures the fsync|dentry mark is cleared in FGGC.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Linux kernel f2fsto a version that resolves this vulnerability.Patch f2fs: fix fsck inconsistency caused by FGGC of node block - Compensating control
Avoid running node block migration on FGGC until the fix is applied, since the bug can make “fsck --dry-run” misinterpret migrated node blocks as fsync-written data due to uncleared dentry/fsync marks.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-46175?
The severity of CVE-2026-46175 is high with a score of 7.1.
How do I fix CVE-2026-46175?
To fix CVE-2026-46175, upgrade to the latest version of the Linux kernel that includes the patch for this vulnerability.
What systems are affected by CVE-2026-46175?
CVE-2026-46175 affects systems running the f2fs file system in the Linux kernel.
What is the impact of CVE-2026-46175?
The impact of CVE-2026-46175 includes potential data corruption during the FGGC node block migration.
How can I mitigate the risks of CVE-2026-46175 before applying a fix?
To mitigate risks from CVE-2026-46175, avoid using the f2fs file system until the upgrade can be performed.