{"id":"CVE-2026-46175","aliases":["CVE-2026-46175"],"related":[],"kind":"vulnerability","state":"published","title":"f2fs: fix fsck inconsistency caused by FGGC of node block","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix fsck inconsistency caused by FGGC of node block\n\nDuring FGGC node block migration, fsck may incorrectly treat the\nmigrated node block as fsync-written data.\n\nThe reproduction scenario:\nroot@vm:/mnt/f2fs# seq 1 2048 | xargs -n 1 ./test_sync // write inline inode and sync\nroot@vm:/mnt/f2fs# rm -f 1\nroot@vm:/mnt/f2fs# sync\nroot@vm:/mnt/f2fs# f2fs_io gc_range // move data block in sync mode and not write CP\n  SPO, \"fsck --dry-run\" find inode has already checkpointed but still\n  with DENT_BIT_SHIFT set\n\nThe root cause is that GC does not clear the dentry mark and fsync mark\nduring node block migration, leading fsck to misinterpret them as\nuser-issued fsync writes.\n\nIn BGGC mode, node block migration is handled by f2fs_sync_node_pages(),\nwhich guarantees the dentry and fsync marks are cleared before writing.\n\nThis patch move the set/clear of the fsync|dentry marks into\n__write_node_folio to make the logic clearer, and ensures the\nfsync|dentry mark is cleared in FGGC.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix fsck inconsistency caused by FGGC of node block\n\nDuring FGGC node block migration, fsck may incorrectly treat the\nmigrated node block as fsync-written data.\n\nThe reproduction scenario:\nroot@vm:/mnt/f2fs# seq 1 2048 | xargs -n 1 ./test_sync // write inline inode and sync\nroot@vm:/mnt/f2fs# rm -f 1\nroot@vm:/mnt/f2fs# sync\nroot@vm:/mnt/f2fs# f2fs_io gc_range // move data block in sync mode and not write CP\n  SPO, \"fsck --dry-run\" find inode has already checkpointed but still\n  with DENT_BIT_SHIFT set\n\nThe root cause is that GC does not clear the dentry mark and fsync mark\nduring node block migration, leading fsck to misinterpret them as\nuser-issued fsync writes.\n\nIn BGGC mode, node block migration is handled by f2fs_sync_node_pages(),\nwhich guarantees the dentry and fsync marks are cleared before writing.\n\nThis patch move the set/clear of the fsync|dentry marks into\n__write_node_folio to make the logic clearer, and ensures the\nfsync|dentry mark is cleared in FGGC.","source":"cvelist"}],"published":"2026-05-28T09:36:29.522Z","modified":"2026-10-30T13:18:56.970Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f","fixed":"3b7a0bbb3444addddb139f42a74ab4492052fa27","status":"affected"},{"type":"git","introduced":"da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f","fixed":"d1820a5814eadb8e63ab6c7c8d04e28ce49836be","status":"affected"},{"type":"git","introduced":"da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f","fixed":"8ac93964658d0649337dcb3f6e38d77f8cdd86f3","status":"affected"},{"type":"git","introduced":"da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f","fixed":"8be551f538dc5b64183e27bd45a7a0795263f760","status":"affected"},{"type":"git","introduced":"da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f","fixed":"e7c6d30169b03307d27c4479563df79c08f3a746","status":"affected"},{"type":"git","introduced":"da011cc0da8cf4a60ddf4d2ae8b42902a3d71e5f","fixed":"c3e238bd1f56993f205ef83889d406dfeaf717a8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.7","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.30","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.7","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.7","fixed":"6.18.30"},{"status":"affected","introduced":"6.19","fixed":"7.0.7"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3b7a0bbb3444addddb139f42a74ab4492052fa27","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d1820a5814eadb8e63ab6c7c8d04e28ce49836be","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ac93964658d0649337dcb3f6e38d77f8cdd86f3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8be551f538dc5b64183e27bd45a7a0795263f760","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e7c6d30169b03307d27c4479563df79c08f3a746","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c3e238bd1f56993f205ef83889d406dfeaf717a8","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46175","url":"https://www.cve.org/CVERecord?id=CVE-2026-46175","licence":"CVE Terms of Use","modified":"2026-10-30T12:26:03.732Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46175","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46175","licence":"Public domain","modified":"2026-10-30T13:18:56.970Z"}],"updatedAt":"2026-11-25T22:59:22.839Z","epss":{"score":0.00126,"percentile":0.02502,"date":"2026-12-01T12:00:22.000Z"}}