Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-46731 Overview
CVE-2024-46731 is an out-of-bounds read vulnerability in the Linux kernel's AMD GPU power management subsystem (drm/amd/pm). The flaw occurs when array index arithmetic uses i - 1U to access mc_data[] while i equals 0, causing the index to wrap and reference memory beyond the array bounds. The issue affects systems running vulnerable Linux kernel versions with AMD graphics drivers enabled. Exploitation requires local access with low privileges and no user interaction, and can impact confidentiality and availability of the host.
Critical Impact
A local, low-privileged user on a system with AMD GPU drivers can trigger an out-of-bounds read in kernel memory, potentially leaking kernel data or causing a denial-of-service condition on the affected host.
Affected Products
- Linux kernel (upstream) with AMD GPU power management (drm/amd/pm) enabled
- Debian LTS Linux kernel packages (as referenced in Debian LTS advisories)
- Downstream distributions shipping unpatched kernel versions prior to the fix commits
Discovery Timeline
- 2024-09-18 - CVE-2024-46731 published to the National Vulnerability Database
- 2026-06-17 - Last updated in the NVD database
Technical Details for CVE-2024-46731
Vulnerability Analysis
The vulnerability resides in the AMD GPU power management code within the Linux Direct Rendering Manager (DRM) subsystem. When processing memory controller data entries, the driver indexes into mc_data[] using the expression i - 1U. Because the subtraction is performed on an unsigned type, a loop iteration where i equals 0 produces a very large unsigned value, dereferencing memory far beyond the intended array. This classifies as an out-of-bounds read [CWE-125] that executes in kernel context.
The fix adds a bounds check so that the i - 1U expression is never evaluated when i is 0. Multiple backport commits were published across stable branches to propagate the correction.
Root Cause
The root cause is unsafe unsigned arithmetic combined with missing boundary validation. The code assumed i would always be greater than 0 at the point of the mc_data[i - 1U] access. When this assumption fails, the resulting index wraps to UINT_MAX, causing the kernel to read from an address far outside the backing allocation. CWE-125 (Out-of-bounds Read) applies.
Attack Vector
Exploitation requires a local, authenticated user with the ability to interact with the AMD GPU power management interfaces exposed by the kernel. No user interaction beyond issuing the triggering operation is required. A successful trigger reads kernel memory contents outside the intended mc_data[] buffer, which can expose sensitive kernel data or trigger faults that destabilize the system. The vulnerability does not grant arbitrary write primitives, limiting direct code execution potential.
No verified public proof-of-concept code is available for this issue. Technical details are documented in the upstream Linux kernel commit series referenced below.
Detection Methods for CVE-2024-46731
Indicators of Compromise
- Unexpected kernel log entries referencing drm/amd/pm, smu, or mc_data faults
- KASAN (Kernel Address Sanitizer) reports flagging out-of-bounds reads in AMD GPU power management functions
- Repeated GPU driver resets or hangs on systems with AMD graphics hardware
Detection Strategies
- Inventory running kernel versions across Linux hosts and compare against the fixed versions listed in the upstream stable commits
- Monitor dmesg and /var/log/kern.log for warnings originating in the AMD DRM power management path
- Use distribution security trackers to confirm whether installed kernel packages include the backported fix commits
Monitoring Recommendations
- Centralize kernel logs for correlation and anomaly detection across the Linux fleet
- Alert on kernel oops, panics, or KASAN splats referencing the AMD GPU subsystem
- Track package versions through configuration management so unpatched kernels are flagged automatically
How to Mitigate CVE-2024-46731
Immediate Actions Required
- Apply the latest stable Linux kernel updates from your distribution vendor that include the referenced AMD GPU power management fix
- Prioritize patching on multi-user systems, shared workstations, and virtualization hosts where untrusted local users may exist
- Restrict local account access on systems that cannot be patched immediately
Patch Information
The issue is resolved in multiple upstream Linux kernel stable branches. Review the fix commits: 12c69674, 20c6373a, 3317966e, 38e32a0d, d83fb9f9, and f1e261ce. Debian users should consult the Debian LTS Announcement and the follow-up Debian LTS Security Notification.
Workarounds
- Where patching is not immediately possible, limit interactive local access to trusted users only
- Disable the AMD GPU driver on systems that do not require AMD graphics acceleration by blacklisting the amdgpu module
- Enforce least-privilege policies that prevent untrusted processes from accessing GPU power management interfaces
# Verify kernel version and check for AMD GPU driver presence
uname -r
lsmod | grep amdgpu
# Apply vendor updates (example: Debian/Ubuntu)
sudo apt update && sudo apt upgrade linux-image-$(uname -r | cut -d- -f3-)
sudo reboot
# Optional: blacklist amdgpu where it is not required
echo 'blacklist amdgpu' | sudo tee /etc/modprobe.d/blacklist-amdgpu.conf
sudo update-initramfs -u
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

