Critical Vulnerability in Linux Package: Foreground GC Trigger Issue in f2fs

linux Updated 02 Oct 2025

Summary

22/08/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2025-38626: In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to trigger foreground gc during f2fs_map_blocks() in lfs mode w/ "mode=lfs" mount option, generic/299 will cause system panic as below: ------... Affects linux versions < 6.12.43-1. Fixed in 6.12.43-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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux package is a core component of the Debian operating system, providing essential functionalities for managing hardware resources and system processes. It is widely used in various environments, from servers to personal computers. This package is known for its stability and performance, but it can be susceptible to vulnerabilities that may compromise system integrity and availability.

Vulnerability Detail

In the Linux kernel, a vulnerability has been identified in the f2fs file system related to the foreground garbage collection (GC) process. Specifically, when using the 'mode=lfs' mount option, the f2fs_map_blocks() function can trigger a system panic due to improper handling of block allocations. This issue arises when multiple threads attempt to write data in parallel, leading to a situation where the system runs out of space and crashes. The root cause is that foreground GC is only triggered after a physical block is allocated, which may not occur promptly under heavy load.

How To Fix

Minimum fixed version

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

As a temporary workaround, users may consider reducing the number of concurrent write operations to the f2fs file system to minimize the risk of triggering the vulnerability until the package can be updated.

Conclusion

The identified vulnerability in the Linux package's f2fs file system poses a significant risk of system crashes under specific conditions. Users are strongly encouraged to update to the patched versions to ensure system stability and security. Additionally, implementing temporary workarounds can help mitigate risks until updates are applied.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The vulnerability is related to the f2fs file system in the Linux kernel, specifically how it handles foreground garbage collection during block allocations.

If exploited, this vulnerability can lead to a system panic, causing the operating system to crash and potentially resulting in data loss.

Yes, patches are available for both Debian 13 and 14. Users should update to the specified fixed versions to mitigate the risk.

As a temporary measure, reduce the number of concurrent write operations to the f2fs file system to lower the risk of triggering the vulnerability.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using a manifest file like package-lock.json. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

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