CVE-2024-27034
kernel: f2fs: compress: fix to cover normal cluster write with cp_rwsem
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · May 1, 2024
Updated · August 18, 2026
Description
A flaw was found in the Linux kernel's f2fs compression component. When overwriting a compressed cluster with a normal cluster, the cp_rwsem (read-write semaphore) was not properly locked during f2fs_write_raw_pages(). This concurrency issue could allow a local attacker to corrupt data if partial blocks were persisted before checkpoint (CP) and Superblock Operations (SPOR), as cluster metadata was not updated atomically. This can lead to data corruption.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-366 · Race Condition within a Thread