CVE-2024-42120·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Check pipe offset before setting vblank pipe_ctx has a size of MAX_PIPES so checking its index before accessing the array. This fixes an OVERRUN issue 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 buffer overrun vulnerability in the AMD display driver's vblank handling. This fix adds proper bounds checking before accessing the pipe context array, preventing potential out-of-bounds memory access. Systems running kernel versions 6.7 through 6.9.8 should prioritize this update.
sudo dnf check-update kernel && sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version and verify if it falls within the affected range (6.7 to 6.9.8)
- Check if AMD GPU drivers are in use on your system with 'lspci | grep -i amd' or 'lsmod | grep -i amdgpu'
- Review kernel logs for memory access errors using 'sudo dmesg | grep -i 'out of bounds\|overrun\|segfault' to detect exploitation attempts
- After patching, reboot and run 'uname -r' again to confirm kernel version is 6.9.9 or later
FAQ
What is CVE-2024-42120?
CVE-2024-42120 is a buffer overrun vulnerability in the Linux kernel's AMD display driver that fails to validate array indices before accessing the pipe context array during vertical blank interrupt (vblank) operations. This could lead to unauthorized memory access with high impact on system confidentiality, integrity, and availability.
Is CVE-2024-42120 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available. However, the high CVSS score (7.8) warrants prompt patching.
What versions of Kernel are affected by CVE-2024-42120?
Linux kernel versions 6.7 through 6.9.8 are vulnerable. The fix is included in kernel 6.9.9 and all subsequent releases.
How do I check if my server is vulnerable to CVE-2024-42120?
Run 'uname -r' to get your kernel version. If it shows a version between 6.7 and 6.9.8 (inclusive), and you have AMD GPU hardware, your system is vulnerable.
Does Defensia detect CVE-2024-42120?
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-42120 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0b3702f9d43d163fd05e43b7d7e22e766dbef329
- https://git.kernel.org/stable/c/5396a70e8cf462ec5ccf2dc8de103c79de9489e6
- https://git.kernel.org/stable/c/96bf81cc1bd058bb8af6e755a548e926e934dfd1
- https://git.kernel.org/stable/c/b2e9abc95583ac7bbb2c47da4d476a798146dfd6
- https://git.kernel.org/stable/c/c5ec2afeeee4c91cebc4eff6d4f1ecf4047259f4
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-42120. Free for 1 server.
Get started free