CVE-2024-26869
Severity CVSS v4.0:
Pending analysis
Type:
CWE-362
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Publication date:
17/04/2024
Last modified:
07/05/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
f2fs: fix to truncate meta inode pages forcely<br />
<br />
Below race case can cause data corruption:<br />
<br />
Thread A GC thread<br />
- gc_data_segment<br />
- ra_data_block<br />
- locked meta_inode page<br />
- f2fs_inplace_write_data<br />
- invalidate_mapping_pages<br />
: fail to invalidate meta_inode page<br />
due to lock failure or dirty|writeback<br />
status<br />
- f2fs_submit_page_bio<br />
: write last dirty data to old blkaddr<br />
- move_data_block<br />
- load old data from meta_inode page<br />
- f2fs_submit_page_write<br />
: write old data to new blkaddr<br />
<br />
Because invalidate_mapping_pages() will skip invalidating page which<br />
has unclear status including locked, dirty, writeback and so on, so<br />
we need to use truncate_inode_pages_range() instead of<br />
invalidate_mapping_pages() to make sure meta_inode page will be dropped.
Impact
Base Score 3.x
4.70
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.19 (including) | 6.6.23 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.7.11 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.8 (including) | 6.8.2 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/04226d8e3c4028dc451e9d8777356ec0f7919253
- https://git.kernel.org/stable/c/77bfdb89cc222fc7bfe198eda77bdc427d5ac189
- https://git.kernel.org/stable/c/9f0c4a46be1fe9b97dbe66d49204c1371e3ece65
- https://git.kernel.org/stable/c/c92f2927df860a60ba815d3ee610a944b92a8694
- https://git.kernel.org/stable/c/04226d8e3c4028dc451e9d8777356ec0f7919253
- https://git.kernel.org/stable/c/77bfdb89cc222fc7bfe198eda77bdc427d5ac189
- https://git.kernel.org/stable/c/9f0c4a46be1fe9b97dbe66d49204c1371e3ece65
- https://git.kernel.org/stable/c/c92f2927df860a60ba815d3ee610a944b92a8694



