CVE-2024-27042

7.8 HIGH

📋 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

Products:
  • Linux kernel with AMD GPU driver (amdgpu)
Versions: Linux kernel versions before the fix commits (specific versions vary by distribution)
Operating Systems: Linux distributions with vulnerable kernel versions
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects systems with AMD graphics hardware using the amdgpu driver. The vulnerability is in the driver code, not the kernel core.

📦 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.

🌐 Internet-Facing: LOW - This is a local vulnerability requiring access to the system.
🏢 Internal Only: MEDIUM - Internal users with local access could potentially exploit this vulnerability.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

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

linux

Temporarily 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

📤 Share & Export