CVE-2026-139794: f2fs: fix to fetch ino via ino_of_node() under cache lock
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix to fetch ino via inoofnode() under cache lock
In f2fswritebacknodecaches(), it's better to fetch ino via inoofnode() under cache lock, otherwise, node cache content may become stale after cache is unlocked due to racing w/ truncation.
Commit 493b9dc8b52c ("f2fs: cache: use node cache") fixes similar issue in f2fsflushinlinedata() introduced in commit 34c061ad85a2 ("f2fs: Avoid double lock for cprwsem during checkpoint").
Affected Software
Event History
Frequently Asked Questions
When can this race occur?
It can occur when f2fs_writeback_node_caches() runs concurrently with file truncation. After the cache lock is released, truncation can make the previously read node-cache content stale.
Which systems are in scope?
The issue is in the Linux kernel's f2fs code path. Systems not using the f2fs filesystem are not exposed through this specific path.