# CVE-2024-26869: f2fs: fix to truncate meta inode pages forcely

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2024-04-17T10:27:30.100Z
- Modified: 2026-10-30T13:17:22.617Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

f2fs: fix to truncate meta inode pages forcely

Below race case can cause data corruption:

Thread A				GC thread
					- gc_data_segment
					 - ra_data_block
					  - locked meta_inode page
- f2fs_inplace_write_data
 - invalidate_mapping_pages
 : fail to invalidate meta_inode page
   due to lock failure or dirty|writeback
   status
 - f2fs_submit_page_bio
 : write last dirty data to old blkaddr
					 - move_data_block
					  - load old data from meta_inode page
					  - f2fs_submit_page_write
					  : write old data to new blkaddr

Because invalidate_mapping_pages() will skip invalidating page which
has unclear status including locked, dirty, writeback and so on, so
we need to use truncate_inode_pages_range() instead of
invalidate_mapping_pages() to make sure meta_inode page will be dropped.

(As written by CVE List.)

## Affected

- Linux Linux: from 6aa58d8ad20a3323f42274c25820a6f54192422d before 0721a4f85d12a364002a9476c84b930fbc993f83; from 6aa58d8ad20a3323f42274c25820a6f54192422d before c92f2927df860a60ba815d3ee610a944b92a8694; from 6aa58d8ad20a3323f42274c25820a6f54192422d before 77bfdb89cc222fc7bfe198eda77bdc427d5ac189; from 6aa58d8ad20a3323f42274c25820a6f54192422d before 04226d8e3c4028dc451e9d8777356ec0f7919253; from 6aa58d8ad20a3323f42274c25820a6f54192422d before 9f0c4a46be1fe9b97dbe66d49204c1371e3ece65; 4.19 (not affected: before 4.19; from 6.1.191 up to 6.1.*; from 6.6.23 up to 6.6.*; from 6.7.11 up to 6.7.*; from 6.8.2 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 4.19 before 6.6.23; from 6.7 before 6.7.11; from 6.8 before 6.8.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/0721a4f85d12a364002a9476c84b930fbc993f83>
- <https://git.kernel.org/stable/c/c92f2927df860a60ba815d3ee610a944b92a8694> (patch)
- <https://git.kernel.org/stable/c/77bfdb89cc222fc7bfe198eda77bdc427d5ac189> (patch)
- <https://git.kernel.org/stable/c/04226d8e3c4028dc451e9d8777356ec0f7919253> (patch)
- <https://git.kernel.org/stable/c/9f0c4a46be1fe9b97dbe66d49204c1371e3ece65> (patch)

## Sources

- CVE List: [CVE-2024-26869](https://www.cve.org/CVERecord?id=CVE-2024-26869), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2024-26869](https://nvd.nist.gov/vuln/detail/CVE-2024-26869), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2024-26869 · Whole record: https://cve.day/CVE-2024-26869.json · Rebuilt by cve.day 2026-11-25T22:58:39.368Z
