Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to avoid potential deadloop in f2fs_fsync_node_pages() There is potential deadloop in race condition: Thread A Thread B - fsync - f2fs_do_sync_file - f2fs_fsync_node_pages - last_fsync_dnode - folio_get(last_folio) - 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 - is_node_folio alwasy return false - atomic && !marked is always true, then goto retry
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 608514deba38c8611ad330d6a3c8e2b9a1f68e4b before 58ca9f06480457eb9c9513e1ae2b75316d4ed1e5; affected 608514deba38c8611ad330d6a3c8e2b9a1f68e4b before bdc06381d590ad5833ee7a2c56b8b685d80ee9b5; affected 608514deba38c8611ad330d6a3c8e2b9a1f68e4b before 161513f53e4ac90fd356433bdf8e31e6adeb92af; affected 608514deba38c8611ad330d6a3c8e2b9a1f68e4b before 905411f6504876d268ba8dafc8e75367782da4b7; affected 608514deba38c8611ad330d6a3c8e2b9a1f68e4b before ce366bfa821ec81dd45bde547ee31e659306cc61 |
| Linux / Linux | affected 4.7; unaffected 0 before 4.7; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.51 through 6.18.*; unaffected 7.2.5 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/58ca9f06480457eb9c9513e1ae2b75316d4ed1e5
- https://git.kernel.org/stable/c/bdc06381d590ad5833ee7a2c56b8b685d80ee9b5
- https://git.kernel.org/stable/c/161513f53e4ac90fd356433bdf8e31e6adeb92af
- https://git.kernel.org/stable/c/905411f6504876d268ba8dafc8e75367782da4b7
- https://git.kernel.org/stable/c/ce366bfa821ec81dd45bde547ee31e659306cc61