
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-27034 is a vulnerability in the Linux kernel's F2FS (Flash-Friendly File System) compression feature. The issue was discovered and fixed in January 2024, affecting the F2FS file system when overwriting compressed clusters with normal clusters. The vulnerability could lead to data corruption under specific conditions when partial blocks were persisted before checkpoint and SPOR (Sudden Power-Off Recovery), due to cluster metadata not being updated atomically (Kernel Commit).
The vulnerability exists in the F2FS compression implementation where the cp_rwsem (checkpoint read-write semaphore) was being incorrectly unlocked during f2fs_write_raw_pages() operation when overwriting compressed clusters with normal clusters. The issue stems from a race condition in the cluster metadata update process. The fix involves maintaining the cp_rwsem lock throughout the entire operation when handling compressed clusters to ensure atomic updates (Kernel Commit).
When exploited, this vulnerability can result in data corruption if partial blocks are persisted before checkpoint and sudden power-off recovery occurs. This is particularly concerning for systems using F2FS with compression enabled, as it could lead to file system inconsistency and data loss (NVD).
The vulnerability requires specific conditions to be exploited, primarily affecting systems using F2FS with compression enabled. It is triggered during normal file system operations when overwriting compressed clusters with normal clusters, making it a reliability issue rather than a security exploit (Ubuntu Security).
The issue has been fixed in various Linux kernel versions. Ubuntu has released patches for affected versions including 24.04 LTS (noble) and 22.04 LTS (jammy). The fix involves modifying the F2FS compression code to properly handle the cp_rwsem lock during cluster writes. Users should update their systems to the patched kernel versions (Ubuntu Security).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."