CVE-2026-139764: f2fs: wait for inode record work before clearing ino bitmaps
In the Linux kernel, the following vulnerability has been resolved:
f2fs: wait for inode record work before clearing ino bitmaps
APPEND/UPDATE inode state recording was moved to the inode eviction workqueue. These entries were later converted to bitmap values stored in XArrays, but the workqueue drain was left behind in the list cleanup loop where it is now a no-op.
During unmount, inode eviction work can therefore remain queued when f2fsreleaseinoentry() destroys the bitmap XArrays. A delayed worker can repopulate them before the workqueue is finally destroyed, leaking newly allocated XArray nodes when the F2FS superblock is freed.
Wait for APPEND/UPDATE inode record work before destroying each bitmap XArray, restoring the required ordering.
Affected Software
Event History
Frequently Asked Questions
When can this issue occur?
It can occur during unmount of an F2FS filesystem when APPEND or UPDATE inode-record work remains queued while the filesystem's inode bitmap XArrays are being destroyed.
What is the impact if the race is triggered?
A delayed inode-eviction worker can repopulate bitmap XArrays after their cleanup has begun, causing newly allocated XArray nodes to leak when the F2FS superblock is freed.
Is this an issue for systems that do not use F2FS?
The described race is in F2FS inode-record and unmount cleanup handling, so the provided information only indicates exposure for F2FS filesystem use.
What does the fix change?
The fix waits for APPEND and UPDATE inode-record work to finish before destroying each bitmap XArray, restoring the required cleanup ordering during unmount.