CVE-2024-42160·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: f2fs: check validation of fault attrs in f2fs_build_fault_attr() - It missed to check validation of fault attrs in parse_options(), let's fix to add check condition in f2fs_build_fault_attr(). - Use f2fs_build_fault_attr() in __sbi_store() to clean up code.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.9
- Published
- 2024-07-30
Affected versions
From: 6.7
Until: 6.9.9
Fixed in: 6.9.9
How to fix this CVE
Update your Linux kernel to version 6.9.9 or later to patch a validation flaw in f2fs fault attribute handling. This vulnerability allows local users with basic privileges to manipulate fault injection attributes, potentially leading to privilege escalation or system compromise. Ensure all systems running kernel versions 6.7 through 6.9.8 are patched immediately.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check the installed kernel version; versions 6.7 to 6.9.8 are vulnerable
- Check if f2fs filesystem is mounted: grep f2fs /proc/mounts
- Verify fault injection attributes are enabled: cat /sys/kernel/debug/f2fs/*/fault_attr 2>/dev/null (if returns data, component is active)
- After patching, rerun 'uname -r' to confirm kernel version is 6.9.9 or higher
FAQ
What is CVE-2024-42160?
This vulnerability is a validation bypass in the Linux kernel's f2fs filesystem module that fails to properly sanitize fault injection attributes during configuration parsing. An attacker with local user privileges can exploit this to manipulate kernel fault injection settings, potentially escalating privileges or destabilizing the system.
Is CVE-2024-42160 being actively exploited?
No. According to CISA's known exploited vulnerabilities catalog, this CVE is not currently being actively exploited in the wild, and no public proof-of-concept exploits are available.
What versions of Kernel are affected by CVE-2024-42160?
Linux kernel versions 6.7, 6.8, and 6.9 up to 6.9.8 are affected. The vulnerability is resolved in kernel 6.9.9 and later.
How do I check if my server is vulnerable to CVE-2024-42160?
Run 'uname -r' and compare your kernel version against 6.7–6.9.8. If your version falls in this range, you are vulnerable. Additionally, confirm f2fs is in use with 'grep f2fs /proc/mounts'.
Does Defensia detect CVE-2024-42160?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-42160 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/44958ca9e400f57bd0478115519ffc350fcee61e
- https://git.kernel.org/stable/c/4ed886b187f47447ad559619c48c086f432d2b77
- https://git.kernel.org/stable/c/6e5b601706ce05d94338cad598736d96bb8096c8
- https://git.kernel.org/stable/c/bc84dd2c33e0c10fd90d60f0cfc0bfb504d4692d
- https://git.kernel.org/stable/c/ecb641f424d6d1f055d149a15b892edcc92c504b
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-42160. Free for 1 server.
Get started free