CVE-2024-27045·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()' Tell snprintf() to store at most 10 bytes in the output buffer instead of 30. Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:1508 dp_dsc_clock_en_read() error: snprintf() is printing too much 30 vs 10
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.2
- Published
- 2024-05-01
Affected versions
From: 6.8
Until: 6.8.2
Fixed in: 6.8.2
How to fix this CVE
Update your Linux kernel to version 6.8.2 or later to address a buffer overflow vulnerability in the AMD display driver's debugfs interface. This fix corrects improper buffer size validation in the dp_dsc_clock_en_read() function that could allow local privilege escalation. Apply the security update through your distribution's package manager immediately.
sudo dnf update kernel kernel-headers kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version; versions 6.8.0 through 6.8.2 are vulnerable
- Check if AMD GPU drivers are loaded with 'lspci | grep -i amd' and 'lsmod | grep amdgpu' to confirm the vulnerable component is active
- Review kernel logs for debugfs access attempts targeting display driver parameters: 'sudo grep -i "dp_dsc\|debugfs" /var/log/kern.log | tail -100'
- Verify the fix by running 'uname -r' after patching and confirming the version is 6.8.2 or higher
FAQ
What is CVE-2024-27045?
CVE-2024-27045 is a buffer overflow vulnerability in the Linux kernel's AMD display driver debugfs interface. A local attacker with low privileges could write beyond allocated buffer boundaries through the dp_dsc_clock_en_read() function, potentially achieving privilege escalation or code execution.
Is CVE-2024-27045 being actively exploited?
No, CVE-2024-27045 is not listed on the CISA Known Exploited Vulnerabilities (KEV) 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-27045?
Linux kernel versions 6.8.0, 6.8.1, and 6.8.2 (before patch) are vulnerable. The fix is included in kernel version 6.8.2 and all subsequent releases.
How do I check if my server is vulnerable to CVE-2024-27045?
Run 'uname -r' and if the output shows 6.8.0, 6.8.1, or early 6.8.2, your system is vulnerable. Then verify AMD GPU presence with 'lspci | grep -i amd' and 'lsmod | grep amdgpu'—if both are present, the vulnerability is exploitable.
Does Defensia detect CVE-2024-27045?
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-27045 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/440f059837418fac1695b65d3ebc6080d33be877
- https://git.kernel.org/stable/c/4b09715f1504f1b6e8dff0e9643630610bc05141
- https://git.kernel.org/stable/c/ad76fd30557d6a106c481e4606a981221ca525f7
- https://git.kernel.org/stable/c/cf114d8d4a8d78df272116a745bb43b48cef65f4
- https://git.kernel.org/stable/c/d346b3e5b25c95d504478507eb867cd3818775ab
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-27045. Free for 1 server.
Get started free