CVE-2024-27032·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to avoid potential panic during recovery During recovery, if FAULT_BLOCK is on, it is possible that f2fs_reserve_new_block() will return -ENOSPC during recovery, then it may trigger panic. Also, if fault injection rate is 1 and only FAULT_BLOCK fault type is on, it may encounter deadloop in loop of block reservation. Let's change as below to fix these issues: - remove bug_on() to avoid panic. - limit the loop count of block reservation to avoid potential deadloop.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.8.2
- Published
- 2024-05-01
Affected versions
From: 6.8
Until: 6.8.2
Fixed in: 6.8.2
How to fix this CVE
Update your Linux kernel to version 6.8.2 or later to resolve this stability issue in the F2FS filesystem recovery mechanism. This patch removes unsafe panic conditions and adds safeguards against infinite loops during block reservation, preventing unintended system crashes during filesystem recovery operations. Apply kernel updates promptly, especially if your systems use F2FS and encounter recovery scenarios.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` — vulnerable versions are 6.8.0 through 6.8.1
- Step 2: Verify F2FS usage by checking mounted filesystems with `mount | grep f2fs` — if F2FS partitions exist, the vulnerability applies
- Step 3: Search kernel logs for F2FS recovery panics using `sudo journalctl -k | grep -i 'f2fs\|panic\|ENOSPC'` to identify past exploitation
- Step 4: Confirm the patch by examining kernel source or release notes to verify that block reservation loop limits and panic removals are present in your installed kernel
FAQ
What is CVE-2024-27032?
This vulnerability affects the Linux kernel's F2FS filesystem recovery code, where unsafe fault injection handling can trigger panic conditions or infinite loops when block reservation fails during filesystem recovery operations.
Is CVE-2024-27032 being actively exploited?
No, this vulnerability is not listed as actively exploited in the CISA KEV catalog and no public exploits are available. However, it can be triggered through intentional fault injection or during legitimate recovery scenarios.
What versions of Kernel are affected by CVE-2024-27032?
Linux kernel versions 6.8.0 through 6.8.1 are affected. The vulnerability was resolved in kernel 6.8.2 and later.
How do I check if my server is vulnerable to CVE-2024-27032?
Run `uname -r` to check your kernel version — if it reports 6.8.0 or 6.8.1, you are vulnerable. Additionally, verify F2FS filesystem usage with `mount | grep f2fs`.
Does Defensia detect CVE-2024-27032?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-27032 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/21ec68234826b1b54ab980a8df6e33c74cfbee58
- https://git.kernel.org/stable/c/8844b2f8a3f0c428b74672f9726f9950b1a7764c
- https://git.kernel.org/stable/c/d034810d02a5af8eb74debe29877dcaf5f00fdd1
- https://git.kernel.org/stable/c/f26091a981318b5b7451d61f99bc073a6af8db67
- https://git.kernel.org/stable/c/fe4de493572a4263554903bf9c3afc5c196e15f0
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-27032. Free for 1 server.
Get started free