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-46871 Overview
CVE-2024-46871 is a Linux kernel vulnerability in the AMD GPU display driver (drm/amd/display). The flaw stems from an incorrect value defined for AMDGPU_DMUB_NOTIFICATION_MAX, which was set to 5 instead of the 6 types actually exposed in the enum dmub_notification_type. The undersized constant is used to allocate the dmub_callback and dmub_thread_offload arrays, creating potential out-of-bounds access when the sixth notification type is referenced. The issue affects multiple Linux kernel versions and Debian Linux 11. It is classified under [CWE-129] (Improper Validation of Array Index).
Critical Impact
A local, low-privileged user interacting with the AMD GPU display stack can trigger out-of-bounds array access in the kernel, potentially leading to memory corruption, privilege escalation, or denial of service.
Affected Products
- Linux Kernel (multiple stable branches prior to the fix commits)
- Debian Linux 11
- Systems using the AMD GPU drm/amd/display driver with DMUB notifications
Discovery Timeline
- 2024-10-09 - CVE-2024-46871 published to NVD
- 2025-01 - Debian LTS advisory released addressing the issue
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-46871
Vulnerability Analysis
The vulnerability resides in the AMD Display Microcontroller Unit Buffer (DMUB) notification handling within the drm/amd/display kernel driver. The macro AMDGPU_DMUB_NOTIFICATION_MAX was defined with the value 5, but the corresponding enum dmub_notification_type enumerates 6 notification types. The driver uses AMDGPU_DMUB_NOTIFICATION_MAX to size the dmub_callback and dmub_thread_offload arrays. When notification code paths index these arrays using an enum value that reaches the sixth type, the access falls outside the allocated bounds.
Out-of-bounds array indexing in kernel memory can corrupt adjacent structures, cause kernel panics, or be leveraged for privilege escalation depending on what resides next to the arrays in memory. The attack requires local access with low privileges and no user interaction, consistent with a local kernel attack surface exposed through the AMD GPU driver stack.
Root Cause
The root cause is an off-by-one definition mismatch between the enumeration and the sizing macro. The enum dmub_notification_type grew to six members while AMDGPU_DMUB_NOTIFICATION_MAX remained at 5. This improper validation of array index, categorized as [CWE-129], means index values up to and including 5 can be used against arrays of size 5, which only accept indices 0 through 4.
Attack Vector
An authenticated local user able to invoke code paths that register or dispatch DMUB notifications on an AMD GPU can trigger the out-of-bounds access. Exploitation does not require user interaction beyond invoking normal driver interfaces. Because the vulnerable arrays live in kernel memory, successful triggering can compromise kernel integrity, availability, and confidentiality.
The fix is documented in the upstream kernel commits, including Kernel Commit 800a5ab673 and Kernel Commit e1896f381d, which correct the AMDGPU_DMUB_NOTIFICATION_MAX value to match the enumeration.
Detection Methods for CVE-2024-46871
Indicators of Compromise
- Unexpected kernel oops, panics, or KASAN: slab-out-of-bounds reports referencing dmub_callback or dmub_thread_offload in drm/amd/display
- Kernel log entries citing AMD DMUB notification handling preceding a crash
- Workloads with the AMD GPU driver loaded on unpatched kernel versions
Detection Strategies
- Inventory running kernel versions and compare against the patched stable commits listed in the vendor advisories
- Enable Kernel Address Sanitizer (KASAN) in test environments to identify out-of-bounds access on AMD GPU workloads
- Monitor dmesg and journalctl -k for AMDGPU-related warnings or stack traces involving DMUB notification code
Monitoring Recommendations
- Centralize kernel logs and alert on repeated AMDGPU crashes or oops across endpoints and servers
- Track package versions for linux-image on Debian systems and flag hosts behind the January 2025 Debian LTS baseline
- Correlate GPU driver crash telemetry with local user sessions to identify abnormal patterns
How to Mitigate CVE-2024-46871
Immediate Actions Required
- Apply the latest stable Linux kernel updates from your distribution containing the AMDGPU_DMUB_NOTIFICATION_MAX correction
- On Debian 11 systems, install updates referenced in the Debian LTS Announcement January 2025
- Reboot affected hosts after kernel upgrade to activate the patched image
- Restrict local access on multi-user systems that cannot be patched immediately
Patch Information
The fix is available in upstream stable kernel commits: Kernel Commit 800a5ab673, Kernel Commit 9f404b0bc2, Kernel Commit ad28d7c3d9, Kernel Commit c592b6355b, and Kernel Commit e1896f381d. Debian users should apply packages announced in the Debian LTS Announcement January 2025.
Workarounds
- Where patching is delayed, unload the amdgpu module on systems that do not require AMD GPU acceleration using modprobe -r amdgpu
- Blacklist the amdgpu driver on headless servers that do not need display output
- Limit local shell access and reduce the number of untrusted local users on affected hosts
# Verify running kernel version and plan upgrade on Debian 11
uname -r
apt update
apt install --only-upgrade linux-image-amd64
# Reboot to activate the patched kernel
systemctl reboot
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

