CVE-2026-99584: f2fs: fix to avoid folio->mapping dereference in is_{meta, node}_folio()
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix to avoid folio->mapping dereference in is{meta, node}folio()
Otherwise, it may cause NULL pointer dereference in race condition:
Thread A Thread B - f2fssetattr - f2fstruncate - f2fstruncateblocks - f2fsdotruncateblocks - f2fstruncateinodeblocks - truncatednode - truncatenode - invalidatemappingpages - folio->mapping = NULL - foliolock - isnodefolio - F2FSFSB(folio): dereference on folio->mapping
Affected Software
Frequently Asked Questions
What conditions are required to trigger this issue?
The race involves concurrent F2FS inode attribute changes and truncation activity. One execution path can invalidate mapping pages and clear folio->mapping while another locks the folio and calls is_node_folio(), causing a dereference of the cleared mapping pointer.
What is the likely impact if the race occurs?
The described outcome is a NULL pointer dereference in the kernel. This can cause a kernel fault or system instability.
Which systems are exposed?
Systems using the Linux kernel with the F2FS filesystem are relevant. The provided information does not identify affected kernel versions or indicate whether the issue is reachable under a default filesystem configuration.