CVE-2024-38561·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: kunit: Fix kthread reference There is a race condition when a kthread finishes after the deadline and before the call to kthread_stop(), which may lead to use after free.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.3
- Published
- 2024-06-19
Affected versions
From: 6.9
Until: 6.9.3
Fixed in: 6.9.3
How to fix this CVE
Update your Linux kernel to version 6.9.3 or later to resolve a race condition in kunit's thread handling that could lead to use-after-free memory corruption. Systems running kernel versions 6.9 through 6.9.2 should prioritize this update, as the vulnerability allows local attackers with limited privileges to potentially crash the system or corrupt kernel memory.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your installed kernel version with `uname -r` and verify if it falls within 6.9 to 6.9.2
- Step 2: Confirm kunit module is loaded by running `lsmod | grep kunit` to see if the vulnerable component is active
- Step 3: Search kernel logs for kthread-related panics or use-after-free warnings with `sudo dmesg | grep -i 'kthread\|use.after.free'`
- Step 4: After patching, reboot the system and verify the new kernel version with `uname -r` matches 6.9.3 or later
FAQ
What is CVE-2024-38561?
This vulnerability is a race condition in the Linux kernel's kunit testing framework where a worker thread may be freed while still referenced, creating a use-after-free condition that can lead to kernel memory corruption or system crashes.
Is CVE-2024-38561 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploit code has been released.
What versions of Kernel are affected by CVE-2024-38561?
Linux kernel versions 6.9, 6.9.1, and 6.9.2 are vulnerable. The fix was released in kernel 6.9.3.
How do I check if my server is vulnerable to CVE-2024-38561?
Run `uname -r` and check if your kernel version is between 6.9 and 6.9.2 inclusive. If the version is 6.9.3 or higher, you are not vulnerable.
Does Defensia detect CVE-2024-38561?
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-38561 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1ec7ccb4cd4b6f72c2998b07880fa7aaf8dfe1d4
- https://git.kernel.org/stable/c/1f2ebd3758e1cef6a1f998a1f7ea73310dcb1699
- https://git.kernel.org/stable/c/8f5c841a559ccb700c8d27a3ca645b7a5f59b4f5
- https://git.kernel.org/stable/c/b0b755cb5a5e0d7168c3ab1b3814b0d3cad9f017
- https://git.kernel.org/stable/c/f8aa1b98ce40184521ed95ec26cc115a255183b2
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-38561. Free for 1 server.
Get started free