# CVE-2026-46175: f2fs: fix fsck inconsistency caused by FGGC of node block

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-28T09:36:29.522Z
- Modified: 2026-10-30T13:18:56.970Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f before 3b7a0bbb3444addddb139f42a74ab4492052fa27; from da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f before d1820a5814eadb8e63ab6c7c8d04e28ce49836be; from da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f before 8ac93964658d0649337dcb3f6e38d77f8cdd86f3; from da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f before 8be551f538dc5b64183e27bd45a7a0795263f760; from da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f before e7c6d30169b03307d27c4479563df79c08f3a746; from da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f before c3e238bd1f56993f205ef83889d406dfeaf717a8; 4.7 (not affected: before 4.7; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.30 up to 6.18.*; from 7.0.7 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 4.7 before 6.18.30; from 6.19 before 7.0.7

## References

- <https://git.kernel.org/stable/c/3b7a0bbb3444addddb139f42a74ab4492052fa27>
- <https://git.kernel.org/stable/c/d1820a5814eadb8e63ab6c7c8d04e28ce49836be>
- <https://git.kernel.org/stable/c/8ac93964658d0649337dcb3f6e38d77f8cdd86f3>
- <https://git.kernel.org/stable/c/8be551f538dc5b64183e27bd45a7a0795263f760> (patch)
- <https://git.kernel.org/stable/c/e7c6d30169b03307d27c4479563df79c08f3a746> (patch)
- <https://git.kernel.org/stable/c/c3e238bd1f56993f205ef83889d406dfeaf717a8> (patch)

## Sources

- CVE List: [CVE-2026-46175](https://www.cve.org/CVERecord?id=CVE-2026-46175), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-46175](https://nvd.nist.gov/vuln/detail/CVE-2026-46175), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-46175 · Whole record: https://cve.day/CVE-2026-46175.json · Rebuilt by cve.day 2026-11-25T22:59:22.839Z
