Race Condition Vulnerability in Linux Kernel's f2fs Package

linux Updated 02 Oct 2025

Summary

27/12/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-53218: In the Linux kernel, the following vulnerability has been resolved: f2fs: fix race in concurrent f2fs_stop_gc_thread In my test case, concurrent calls to f2fs shutdown report the following stack trace: Oops: general prot... Affects linux versions < 6.12.3-1. Fixed in 6.12.3-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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. The f2fs (Flash-Friendly File System) is designed to optimize performance on flash storage devices. This package is widely used in various Linux distributions, including Debian. The vulnerability in question arises from a race condition that can lead to a general protection fault, potentially causing system instability.

Vulnerability Detail

In the Linux kernel, a race condition in the f2fs_stop_gc_thread function can lead to a general protection fault when concurrent shutdown calls are made. This issue arises when two threads attempt to stop the garbage collection thread simultaneously, leading to a use-after-free scenario. The root cause is the improper handling of the gc_thread variable, which can result in accessing freed memory, causing unpredictable behavior and system crashes.

How To Fix

Minimum fixed version

6.12.3-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, there are no specific workarounds mentioned to mitigate this vulnerability other than applying the patch. It is recommended to avoid using the f2fs file system until the update is applied.

Conclusion

The race condition vulnerability in the f2fs package of the Linux kernel poses a significant risk of system instability. It is crucial to update to the patched version 6.12.3-1 to mitigate this issue. Users are encouraged to monitor their systems for vulnerabilities using tools like Vulert.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability is a race condition in the f2fs package of the Linux kernel, which can lead to a general protection fault.

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

Exploiting this vulnerability can lead to system crashes and instability due to accessing freed memory.

Yes, the vulnerability has been patched in version 6.12.3-1 of the Linux package.

If immediate updating is not possible, consider avoiding the use of the f2fs file system until the patch is applied.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

6.12.3-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