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-41061 Overview
CVE-2024-41061 is an out-of-bounds array access vulnerability in the Linux kernel's AMD display driver (drm/amd/display). The flaw resides in the dml2_calculate_rq_and_dlg_params() function within the Display Mode Library 2 (DML2) subsystem. The variable out_lowest_state_idx is used as an index into the FCLKChangeSupport array but can exceed the array bounds of 1, enabling improper memory access. The issue is classified under CWE-129: Improper Validation of Array Index. Local attackers with low privileges can trigger the condition to compromise confidentiality, integrity, and availability on affected systems running vulnerable Linux kernel versions.
Critical Impact
Local attackers with low privileges can trigger out-of-bounds access in the AMD GPU display driver, potentially leading to kernel memory corruption and system compromise.
Affected Products
- Linux Kernel (AMD GPU drm/amd/display driver, DML2 subsystem)
- Distributions shipping unpatched kernels prior to the stable fix
- Systems using AMD graphics hardware with the affected display driver loaded
Discovery Timeline
- 2024-07-29 - CVE-2024-41061 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-41061
Vulnerability Analysis
The vulnerability exists in the AMD Display Core Next (DCN) Display Mode Library 2 (DML2) code path. Specifically, dml2_calculate_rq_and_dlg_params() references the FCLKChangeSupport array using out_lowest_state_idx as the index. The FCLKChangeSupport array has a maximum valid index of 1, but out_lowest_state_idx can hold values greater than 1 under certain state calculations. This mismatch allows the kernel to read memory outside the intended array bounds. Because the affected code runs inside the kernel, improper memory access can corrupt adjacent kernel data structures, leak information, or destabilize the system. The upstream fix constrains the lookup to always use index 0, since the DML2 core assigns identical values across all FCLKChangeSupport elements.
Root Cause
The root cause is missing index validation ([CWE-129]) prior to array dereference. The code trusted out_lowest_state_idx without bounding it against the FCLKChangeSupport array size. The fix applied in commits 0ad4b4a2f6357c45fbe444ead1a929a0b4017d03 and 94166fe12543fbef122ca2d093e794ea41073a85 substitutes a constant index of 0, eliminating the unbounded index path entirely.
Attack Vector
Exploitation requires local access with low privileges and no user interaction. An attacker invokes code paths in the AMD display driver that trigger dml2_calculate_rq_and_dlg_params() with a state index exceeding the array bound. The vulnerability is reachable through standard DRM interfaces exposed to local users on systems with AMD graphics hardware. Successful exploitation can impact kernel memory integrity and availability. See the kernel patch commit for the authoritative technical description.
Detection Methods for CVE-2024-41061
Indicators of Compromise
- Unexpected kernel oops, panics, or warnings referencing dml2_calculate_rq_and_dlg_params or FCLKChangeSupport in dmesg output.
- KASAN (Kernel Address Sanitizer) reports flagging out-of-bounds reads in the drm/amd/display subsystem.
- Abnormal GPU driver crashes or display subsystem resets on AMD hardware without a corresponding hardware fault.
Detection Strategies
- Inventory running kernel versions across the fleet and correlate against the fixed stable branches referenced in the upstream commits.
- Monitor kernel ring buffers and journalctl -k for stack traces touching the AMD DML2 code path.
- Enable KASAN on test and staging kernels to surface out-of-bounds access conditions before production exposure.
Monitoring Recommendations
- Centralize Linux kernel logs into a security data lake and alert on crash signatures referencing AMD display driver symbols.
- Track package versions for linux-image-* via configuration management and flag hosts running pre-patch kernels on AMD hardware.
- Correlate GPU driver crashes with local user session activity to identify potential triggering processes.
How to Mitigate CVE-2024-41061
Immediate Actions Required
- Apply vendor-supplied kernel updates that include commits 0ad4b4a2f6357c45fbe444ead1a929a0b4017d03 and 94166fe12543fbef122ca2d093e794ea41073a85.
- Prioritize patching of multi-user Linux systems with AMD graphics hardware, including workstations and shared compute nodes.
- Restrict untrusted local account access on systems that cannot be immediately rebooted into a patched kernel.
Patch Information
The fix is available upstream in the Linux stable tree. Refer to the Kernel Git Commit 0ad4b4a and the Kernel Git Commit 94166fe for the authoritative patches. Downstream distributions including Debian, Ubuntu, Red Hat, and SUSE have published updated kernel packages incorporating these commits. Apply vendor-provided kernel updates and reboot affected hosts to activate the fix.
Workarounds
- Where patching is delayed, limit local user access on affected AMD-equipped systems to reduce the exposure surface.
- Unload the AMD display driver (amdgpu) on systems that do not require graphical output, such as headless servers, to eliminate the vulnerable code path.
- Apply distribution-provided livepatches when available to avoid reboot downtime on critical systems.
# Verify installed kernel version and confirm patched build
uname -r
# Debian/Ubuntu: update kernel to a patched release
sudo apt update && sudo apt install --only-upgrade linux-image-generic
sudo reboot
# RHEL/Rocky/Alma: update kernel package
sudo dnf update kernel
sudo reboot
# Headless systems: blacklist amdgpu if graphical output is unnecessary
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

