Linux kernel denial of service in F2FS folio checks
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.647.3.57.4-rc1In 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 - f2fs_setattr - f2fs_truncate - f2fs_truncate_blocks - f2fs_do_truncate_blocks - f2fs_truncate_inode_blocks - truncate_dnode - truncate_node - invalidate_mapping_pages - folio->mapping = NULL - folio_lock - is_node_folio - F2FS_F_SB(folio): dereference on folio->mapping
From the CVE record · Linux
A race in the Linux kernel's f2fs code can clear a folio's mapping while another thread checks whether it is a node or metadata folio. This can cause a NULL pointer dereference. The input does not specify an attack path, authentication requirement, or user interaction.
Engineers running Linux kernels with f2fs should check their versions; affected versions are not specified.