CVE-2024-38581·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu/mes: fix use-after-free issue Delete fence fallback timer to fix the ramdom use-after-free issue. v2: move to amdgpu_mes.c
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.12
- Published
- 2024-06-19
Affected versions
From: 6.7
Until: 6.8.12
Fixed in: 6.8.12
How to fix this CVE
Update the Linux kernel to version 6.8.12 or later to resolve a use-after-free vulnerability in the AMD GPU Micro Engine Scheduler (MES) component. The vulnerability stems from improper fence fallback timer cleanup that could lead to memory corruption and system instability. Apply the kernel update through your distribution's package manager and reboot the system to activate the patched kernel.
sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with `uname -r` and verify if it falls within the vulnerable range (6.7 to 6.8.11)
- Step 2: Confirm AMD GPU presence by running `lspci | grep -i amd` to determine if the MES scheduler component is in use
- Step 3: Search system logs for MES-related errors using `sudo journalctl -xe | grep -i 'mes\|amdgpu' | grep -i 'error\|fault\|oops'`
- Step 4: After updating to kernel 6.8.12+, verify the fix with `uname -r` and check for absence of use-after-free errors in dmesg logs: `dmesg | grep -i 'use-after-free'`
FAQ
What is CVE-2024-38581?
CVE-2024-38581 is a use-after-free vulnerability in the Linux kernel's AMD GPU Micro Engine Scheduler (MES) that occurs when fence fallback timers are not properly deleted during cleanup operations. This memory safety issue can lead to kernel crashes, data corruption, or potential privilege escalation on systems with AMD GPUs.
Is CVE-2024-38581 being actively exploited?
No, CVE-2024-38581 is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploit code has been released. However, the high CVSS score (7.8) warrants prompt patching due to the severity of use-after-free conditions.
What versions of Kernel are affected by CVE-2024-38581?
Linux kernel versions 6.7 through 6.8.11 are affected. The vulnerability is fixed in kernel version 6.8.12 and later releases.
How do I check if my server is vulnerable to CVE-2024-38581?
Run `uname -r` to display your kernel version. If the output shows a version between 6.7 and 6.8.11 and you have AMD GPUs, your system is vulnerable. Additionally, verify AMD GPU presence with `lspci | grep -i amd`.
Does Defensia detect CVE-2024-38581?
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-38581 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0f98c144c15c8fc0f3176c994bd4e727ef718a5c
- https://git.kernel.org/stable/c/39cfce75168c11421d70b8c0c65f6133edccb82a
- https://git.kernel.org/stable/c/70b1bf6d9edc8692d241f59a65f073aec6d501de
- https://git.kernel.org/stable/c/948255282074d9367e01908b3f5dcf8c10fc9c3d
- https://git.kernel.org/stable/c/0f98c144c15c8fc0f3176c994bd4e727ef718a5c
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-38581. Free for 1 server.
Get started free