CVE-2024-42147·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: crypto: hisilicon/debugfs - Fix debugfs uninit process issue During the zip probe process, the debugfs failure does not stop the probe. When debugfs initialization fails, jumping to the error branch will also release regs, in addition to its own rollback operation. As a result, it may be released repeatedly during the regs uninit process. Therefore, the null check needs to be added to the regs uninit process.
- 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 resolve a double-free vulnerability in the HiSilicon crypto debugfs initialization logic. This vulnerability occurs when debugfs setup fails during device probe, causing memory regions to be released twice. Ensure your system is running the patched kernel version to prevent potential kernel crashes or memory corruption.
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 if output shows 6.7 through 6.9.8)
- Step 2: Verify HiSilicon crypto device is present: lspci | grep -i hisilicon or cat /proc/crypto | grep hisilicon
- Step 3: Search kernel logs for debugfs errors: dmesg | grep -i 'debugfs\|hisilicon' or journalctl -k | grep -i 'debugfs\|hisilicon'
- Step 4: After patching, confirm kernel version: uname -r (should show 6.9.9 or later)
FAQ
What is CVE-2024-42147?
CVE-2024-42147 is a double-free memory corruption vulnerability in the Linux kernel's HiSilicon crypto debugfs module. When debugfs initialization fails during device probe, the error handling path attempts to release memory regions that are later freed again during cleanup, potentially causing kernel panics or memory corruption.
Is CVE-2024-42147 being actively exploited?
No, there is no evidence of active exploitation or public exploits available for this vulnerability. However, the high CVSS score (7.8) indicates it should be patched promptly as it affects system stability.
What versions of Kernel are affected by CVE-2024-42147?
Linux kernel versions 6.7 through 6.9.8 are vulnerable. The vulnerability is resolved in kernel 6.9.9 and later.
How do I check if my server is vulnerable to CVE-2024-42147?
Run 'uname -r' to display your kernel version. If it shows a version between 6.7 and 6.9.8, your system is vulnerable. Additionally, verify HiSilicon crypto support is enabled with 'lspci | grep -i hisilicon'.
Does Defensia detect CVE-2024-42147?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-42147 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/7fc8d9a525b5c3f8dfa5ed50901e764d8ede7e1e
- https://git.kernel.org/stable/c/8be0913389718e8d27c4f1d4537b5e1b99ed7739
- https://git.kernel.org/stable/c/e0a2d2df9ba7bd6bd7e0a9b6a5e3894f7e8445b3
- https://git.kernel.org/stable/c/eda60520cfe3aba9f088c68ebd5bcbca9fc6ac3c
- https://git.kernel.org/stable/c/7fc8d9a525b5c3f8dfa5ed50901e764d8ede7e1e
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-42147. Free for 1 server.
Get started free