CVE-2024-27042
📋 TL;DR
This CVE describes an out-of-bounds memory access vulnerability in the AMD GPU driver within the Linux kernel. An attacker with local access could potentially crash the system or execute arbitrary code with kernel privileges. This affects Linux systems using AMD graphics hardware with vulnerable kernel versions.
💻 Affected Systems
- Linux kernel with AMD GPU driver (amdgpu)
📦 What is this software?
Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →Linux Kernel by Linux
The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...
Learn more about Linux Kernel →⚠️ Risk & Real-World Impact
Worst Case
Local privilege escalation to kernel-level code execution, potentially leading to full system compromise.
Likely Case
Kernel panic or system crash causing denial of service.
If Mitigated
No impact if proper access controls prevent local attackers from exploiting the vulnerability.
🎯 Exploit Status
Exploitation requires local access and knowledge of the vulnerable driver interface. No public exploits are known at this time.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Linux kernel versions containing the fix commits: 8db10cee51e3e11a6658742465edc21986cf1e8d and related stable backports
Vendor Advisory: https://git.kernel.org/stable/c/8db10cee51e3e11a6658742465edc21986cf1e8d
Restart Required: Yes
Instructions:
1. Update your Linux kernel to a version containing the fix. 2. For distributions: Use package manager (apt/yum/dnf) to update kernel packages. 3. Reboot the system to load the patched kernel.
🔧 Temporary Workarounds
Disable AMD GPU driver
linuxTemporarily disable the amdgpu driver if AMD graphics are not essential
echo 'blacklist amdgpu' > /etc/modprobe.d/blacklist-amdgpu.conf
update-initramfs -u
reboot
🧯 If You Can't Patch
- Restrict local user access to systems with vulnerable kernels
- Implement strict privilege separation and limit user permissions
🔍 How to Verify
Check if Vulnerable:
Check kernel version and if amdgpu module is loaded: uname -r && lsmod | grep amdgpu
Check Version:
uname -r
Verify Fix Applied:
Verify kernel version is updated and check git commit history for the fix: uname -r && zgrep -i 'CVE-2024-27042\|amdgpu_discovery_reg_base_init' /boot/config-*
📡 Detection & Monitoring
Log Indicators:
- Kernel panic messages
- amdgpu driver crash logs in dmesg
- System crash/reboot events
Network Indicators:
- None - this is a local vulnerability
SIEM Query:
source="kernel" AND ("panic" OR "Oops" OR "amdgpu")
🔗 References
- https://git.kernel.org/stable/c/8db10cee51e3e11a6658742465edc21986cf1e8d
- https://git.kernel.org/stable/c/8f3e68c6a3fff53c2240762a47a0045d89371775
- https://git.kernel.org/stable/c/b33d4af102b9c1f7a83d3f0ad3cab7d2bab8f058
- https://git.kernel.org/stable/c/cdb637d339572398821204a1142d8d615668f1e9
- https://git.kernel.org/stable/c/8db10cee51e3e11a6658742465edc21986cf1e8d
- https://git.kernel.org/stable/c/8f3e68c6a3fff53c2240762a47a0045d89371775
- https://git.kernel.org/stable/c/b33d4af102b9c1f7a83d3f0ad3cab7d2bab8f058
- https://git.kernel.org/stable/c/cdb637d339572398821204a1142d8d615668f1e9