CVE-2024-57942
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
21/01/2025
Last modified:
15/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
netfs: Fix ceph copy to cache on write-begin<br />
<br />
At the end of netfs_unlock_read_folio() in which folios are marked<br />
appropriately for copying to the cache (either with by being marked dirty<br />
and having their private data set or by having PG_private_2 set) and then<br />
unlocked, the folio_queue struct has the entry pointing to the folio<br />
cleared. This presents a problem for netfs_pgpriv2_write_to_the_cache(),<br />
which is used to write folios marked with PG_private_2 to the cache as it<br />
expects to be able to trawl the folio_queue list thereafter to find the<br />
relevant folios, leading to a hang.<br />
<br />
Fix this by not clearing the folio_queue entry if we&#39;re going to do the<br />
deprecated copy-to-cache. The clearance will be done instead as the folios<br />
are written to the cache.<br />
<br />
This can be reproduced by starting cachefiles, mounting a ceph filesystem<br />
with "-o fsc" and writing to it.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.12 (including) | 6.12.10 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



