CVE-2026-139693: f2fs: fix to record both APPEND and UPDATE ino entries
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix to record both APPEND and UPDATE ino entries
In f2fspostevictinode(), recordbits is assigned with BIT(APPENDINO) and BIT(UPDATEINO) respectively, so the second assignment overwrites the first one: when both FIAPPENDWRITE and FIUPDATEWRITE are set, only the UPDATEINO entry is recorded.
The two flags are not mutually exclusive.Once the APPENDINO entry is lost after the inode eviction, the shortcut in f2fsdosyncfile() can take the flushout path in the next fsync(), skipping f2fsfsyncnodepages(). As a result, the dnodes holding the newly allocated blocks are not fsync-marked, and after a sudden power loss, the data appended before the eviction is silently lost.
This restores the previous behavior where the two ino entries were added independently.
Affected Software
Event History
Frequently Asked Questions
What conditions are required for data loss to occur?
The affected filesystem must be F2FS, and an inode must have both FI_APPEND_WRITE and FI_UPDATE_WRITE set before it is evicted. A subsequent fsync can then skip marking dnodes for newly allocated blocks, and a sudden power loss is required for the appended data to be silently lost.
What is the practical impact of this issue?
Data appended before inode eviction may be lost after an unexpected power failure, despite a subsequent fsync. The issue is a data-durability failure rather than an indication of unauthorized access or code execution.
What can be done if the fix cannot be deployed immediately?
The provided information identifies sudden power loss as the event that exposes the lost fsync markings. Reducing unexpected shutdown risk and maintaining reliable power can reduce exposure, but no complete workaround is provided.