Critical Vulnerability in Linux Kernel: f2fs Compression Race Condition

linux Updated 02 Oct 2025

Summary

24/06/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-34027: In the Linux kernel, the following vulnerability has been resolved: f2fs: compress: fix to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock It needs to cover {reserve,release}_compress_blocks() w/ cp_rwsem lock... Affects linux versions < 5.10.221-1. Fixed in 5.10.221-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is the core component of many operating systems, responsible for managing hardware resources and providing essential services to software applications. It supports various file systems, including f2fs (Flash-Friendly File System), which is optimized for NAND flash memory. The kernel's stability and security are paramount, as vulnerabilities can lead to severe system failures or data corruption. This specific vulnerability affects the f2fs file system's compression functionality, potentially leading to data integrity issues.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the f2fs file system related to its compression mechanism. The issue arises from inadequate locking during the operations of reserving and releasing compressed blocks, specifically with the cp_rwsem lock. This oversight can lead to race conditions during checkpoint operations, resulting in corruption of critical filesystem metadata, including block addresses in dnodes, inode fields, and the total valid block count. If exploited, this vulnerability can compromise data integrity and lead to system instability.

How To Fix

Minimum fixed version

5.10.221-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, no specific workarounds are provided for this vulnerability. It is recommended to apply the patch as soon as it is available to mitigate risks.

Conclusion

The vulnerability identified in the Linux kernel's f2fs file system poses a significant risk to data integrity due to a race condition in its compression functionality. It is essential for users to update their systems to the patched versions to safeguard against potential data corruption and system instability. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability is a race condition in the f2fs file system's compression mechanism, which can lead to data corruption.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected.

Exploitation of this vulnerability can result in corrupted filesystem metadata, leading to data loss and system instability.

Yes, patches are available for various Debian versions. Ensure to update to the specified patched versions to mitigate the vulnerability.

While no specific workarounds are available, it is crucial to prioritize applying the patch as soon as possible to prevent potential exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

5.10.221-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback