# CVE-2024-27034: f2fs: compress: fix to cover normal cluster write with cp_rwsem

- 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.29%, higher than 22% of CVEs (2026-12-01)
- Published: 2024-05-01T12:53:39.767Z
- Modified: 2026-08-05T11:29:08.856Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

f2fs: compress: fix to cover normal cluster write with cp_rwsem

When we overwrite compressed cluster w/ normal cluster, we should
not unlock cp_rwsem during f2fs_write_raw_pages(), otherwise data
will be corrupted if partial blocks were persisted before CP & SPOR,
due to cluster metadata wasn't updated atomically.

(As written by CVE List.)

## Affected

- Linux Linux: from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before 7d420eaaa18ec8e2bb4eeab8c65c00492ef6f416; from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before 542c8b3c774a480bfd0804291a12f6f2391b0cd1; from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before 75abfd61392b1db391bde6d738a30d685b843286; from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before 2b1b14d9fc94b8feae20808684c8af28ec80f45b; from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before 52982edfcefd475cc34af663d5c47c0cddaa5739; from 4c8ff7095bef64fc47e996a938f7d57f9e077da3 before fd244524c2cf07b5f4c3fe8abd6a99225c76544b; 5.6 (not affected: before 5.6; from 5.15.153 up to 5.15.*; from 6.1.83 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 5.6 before 5.15.153; from 5.16 before 6.1.83; from 6.2 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 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/7d420eaaa18ec8e2bb4eeab8c65c00492ef6f416> (patch)
- <https://git.kernel.org/stable/c/542c8b3c774a480bfd0804291a12f6f2391b0cd1> (patch)
- <https://git.kernel.org/stable/c/75abfd61392b1db391bde6d738a30d685b843286> (patch)
- <https://git.kernel.org/stable/c/2b1b14d9fc94b8feae20808684c8af28ec80f45b> (patch)
- <https://git.kernel.org/stable/c/52982edfcefd475cc34af663d5c47c0cddaa5739> (patch)
- <https://git.kernel.org/stable/c/fd244524c2cf07b5f4c3fe8abd6a99225c76544b> (patch)

## Sources

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

---

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