Critical Vulnerability in Linux Package: Foreground GC Trigger Issue in f2fs
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for linux.