CVE-2024-42119·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Skip finding free audio for unknown engine_id [WHY] ENGINE_ID_UNKNOWN = -1 and can not be used as an array index. Plus, it also means it is uninitialized and does not need free audio. [HOW] Skip and return NULL. This fixes 2 OVERRUN issues reported by Coverity.
- 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 memory access vulnerability in the AMD display driver's audio engine detection logic. This bug could cause kernel crashes or memory corruption when the display driver attempts to allocate audio resources with an invalid engine identifier. Apply the security update at your earliest convenience to prevent potential system instability.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version by running `uname -r` and compare it against the affected range 6.7 to 6.9.9
- Step 2: Verify AMD GPU/display driver is in use by checking `lspci | grep -i amd` and `cat /proc/modules | grep amdgpu`
- Step 3: Search kernel logs for audio-related errors with `sudo journalctl -b | grep -i 'audio\|engine_id\|amd.*display'` or check `/var/log/kern.log`
- Step 4: After updating, confirm the new kernel is loaded with `uname -r` and reboot if necessary with `sudo reboot`, then verify no audio allocation errors appear in logs
FAQ
What is CVE-2024-42119?
CVE-2024-42119 is a memory safety vulnerability in the Linux kernel's AMD display driver where an uninitialized audio engine identifier (ENGINE_ID_UNKNOWN = -1) is used as an array index without validation, leading to out-of-bounds memory access and potential kernel instability.
Is CVE-2024-42119 being actively exploited?
No, according to CISA's Known Exploited Vulnerabilities (KEV) database, CVE-2024-42119 is not currently being actively exploited in the wild, and no public exploit code is available.
What versions of Kernel are affected by CVE-2024-42119?
Linux kernel versions 6.7 through 6.9.8 are vulnerable; the fix is included in kernel version 6.9.9 and later releases.
How do I check if my server is vulnerable to CVE-2024-42119?
Run `uname -r` to check your kernel version. If it shows a version between 6.7 and 6.9.8 and you have AMD GPU hardware (verified with `lspci | grep AMD`), your system is vulnerable.
Does Defensia detect CVE-2024-42119?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server running versions 6.7–6.9.8, CVE-2024-42119 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/1357b2165d9ad94faa4c4a20d5e2ce29c2ff29c3
- https://git.kernel.org/stable/c/874261358d31fc772f2823604167e670983cc1ca
- https://git.kernel.org/stable/c/881fb6afc0004c5e6392ae2848f825bf051dae14
- https://git.kernel.org/stable/c/95ad20ee3c4efbb91f9a4ab08e070aa3697f5879
- https://git.kernel.org/stable/c/9eb4db08a808e3a3ba59193aeb84a57a6dc4d8c9
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-42119. Free for 1 server.
Get started free