{"id":"CVE-2026-53368","published":"2026-07-19T09:10:29Z","modified":"2026-10-30T12:27:04Z","title":"f2fs: fix fsck inconsistency caused by incorrect nat_entry flag usage","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nf2fs: fix fsck inconsistency caused by incorrect nat_entry flag usage\n\nf2fs_need_dentry_mark() reads nat_entry flags without mutual exclusion\nwith the checkpoint path, which can result in an incorrect inode block\nmarking state. The scenario is as follows:\n\ncreate & write & fsync 'file A'                 write checkpoint\n- f2fs_do_sync_file // inline inode\n - f2fs_write_inode // inode folio is dirty\n                                                - f2fs_write_checkpoint\n                                                 - f2fs_flush_merged_writes\n                                                 - f2fs_sync_node_pages\n - f2fs_fsync_node_pages // no dirty node\n - f2fs_need_inode_block_update // return true\n - f2fs_fsync_node_pages // inode dirtied\n  - f2fs_need_dentry_mark //return true\n                                                 - f2fs_flush_nat_entries\n                                                - f2fs_write_checkpoint end\n  - __write_node_folio // inode with DENT_BIT_SHIFT set\n  SPO, \"fsck --dry-run\" find inode has already checkpointed but still\n  with DENT_BIT_SHIFT set\n\nThe state observed by f2fs_need_dentry_mark() can differ from the state\nobserved in __write_node_folio() after acquiring sbi->node_write. The\nroot cause is that the semantics of IS_CHECKPOINTED and\nHAS_FSYNCED_INODE are only guaranteed after the checkpoint write has\nfully completed.\n\nThis patch moves set_dentry_mark() into __write_node_folio() and\nprotects it with the sbi->node_write lock.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00171,"percentile":0.06499,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/bb1275802b482bc5854e434e212589fe253eab22","tags":[]},{"url":"https://git.kernel.org/stable/c/270c519bca3a59b6140d176415aff16e4e06f9e3","tags":[]},{"url":"https://git.kernel.org/stable/c/bedb710b63ae1bd617e65d0a8cf6cea1200b3753","tags":[]},{"url":"https://git.kernel.org/stable/c/b28a83ea4934215b5de906c3ee4fbfbc651573e0","tags":[]},{"url":"https://git.kernel.org/stable/c/019f9dda7f66e55eb94cd32e1d3fff5835f73fbc","tags":[]}],"priority":{"score":6.3,"factors":[{"name":"EPSS percentile","points":1.3},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 88bd02c9472a166b706284a34a84f1243322d782, < bb1275802b482bc5854e434e212589fe253eab22",">= 88bd02c9472a166b706284a34a84f1243322d782, < 270c519bca3a59b6140d176415aff16e4e06f9e3",">= 88bd02c9472a166b706284a34a84f1243322d782, < bedb710b63ae1bd617e65d0a8cf6cea1200b3753",">= 88bd02c9472a166b706284a34a84f1243322d782, < b28a83ea4934215b5de906c3ee4fbfbc651573e0",">= 88bd02c9472a166b706284a34a84f1243322d782, < 019f9dda7f66e55eb94cd32e1d3fff5835f73fbc"]},{"vendor":"Linux","product":"Linux","versions":["3.18"]}],"euvd":{"id":"EUVD-2026-45438","exploited":false,"provenance":"source"}}