Skip to main content
Vulnerability Database/CVE-2024-46724

CVE-2024-46724: Linux Kernel Buffer Overflow Vulnerability

CVE-2024-46724 is a buffer overflow flaw in the Linux Kernel that affects the drm/amdgpu driver, allowing out-of-bounds read operations. This article covers technical details, affected versions, impact, and mitigation.

Published:

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-46724 Overview

CVE-2024-46724 is an out-of-bounds read vulnerability in the Linux kernel's AMD GPU display driver (drm/amdgpu). The flaw resides in the df_v1_7_channel_number array access logic, where the fb_channel_number value was not range-checked before being used as an array index. A local authenticated user with access to the GPU subsystem can trigger the out-of-bounds read, which may expose kernel memory contents or crash the system. The vulnerability affects multiple Linux kernel versions and has been addressed in a series of upstream stable patches. Debian LTS released advisories tracking fixes for this issue in October 2024 and January 2025.

Critical Impact

Local attackers can trigger an out-of-bounds array read in the amdgpu driver, potentially leaking kernel memory or causing a denial-of-service through kernel instability.

Affected Products

  • Linux Kernel (multiple stable branches prior to the referenced fix commits)
  • Debian GNU/Linux (addressed via Debian LTS advisories)
  • Distributions shipping vulnerable drm/amdgpu driver builds

Discovery Timeline

  • 2024-09-18 - CVE-2024-46724 published to NVD
  • 2024-10 - Debian LTS advisory released addressing the vulnerability
  • 2025-01 - Follow-up Debian LTS advisory published
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-46724

Vulnerability Analysis

The vulnerability is classified as an out-of-bounds read [CWE-125] in the AMD GPU Data Fabric (DF) version 1.7 code path within the Linux kernel's Direct Rendering Manager (DRM) subsystem. The df_v1_7_channel_number lookup table is indexed by a fb_channel_number value derived from hardware state during GPU initialization or runtime queries. Without a bounds check, an index exceeding the array size causes the kernel to read adjacent memory, which may contain sensitive kernel data or trigger faults that destabilize the system. Confidentiality impact is high, as leaked bytes can be returned through the driver path, while availability is also affected because invalid reads can cause kernel oops or panic conditions.

Root Cause

The root cause is missing input validation on the fb_channel_number variable before it is used to index the static df_v1_7_channel_number array. The upstream fix introduces a range check that validates fb_channel_number against the array bounds before dereferencing, returning a safe default when the value falls outside the expected range.

Attack Vector

Exploitation requires local access with low privileges and no user interaction. The attacker must have access to the amdgpu driver interface, typically through DRM ioctls or sysfs entries exposed to unprivileged users on systems with AMD GPUs. No remote network vector exists for this issue, and no public proof-of-concept has been published.

No verified exploit code is available in the enriched references. Readers can review the patch content directly in the kernel commits: Kernel Patch 32915dc and Kernel Patch f926797.

Detection Methods for CVE-2024-46724

Indicators of Compromise

  • Unexpected kernel oops or panic messages referencing df_v1_7 or amdgpu in dmesg and /var/log/kern.log.
  • KASAN (Kernel Address Sanitizer) reports flagging out-of-bounds reads in the df_v1_7_channel_number array when enabled on test kernels.
  • Unexplained GPU driver resets or crashes on systems with AMD graphics hardware.

Detection Strategies

  • Inventory Linux hosts running AMD GPU hardware and compare their kernel versions against the patched commits listed in the kernel.org advisories.
  • Enable KASAN in non-production environments to catch out-of-bounds reads in the amdgpu driver during fuzzing or stress testing.
  • Monitor package management logs to confirm kernel updates distributed via the Debian LTS Advisory October 2024 and Debian LTS Advisory January 2025 have been applied.

Monitoring Recommendations

  • Collect and centralize kernel ring buffer messages to detect anomalous amdgpu warnings or stack traces.
  • Track installed kernel package versions across the fleet to identify unpatched hosts.
  • Correlate GPU driver crashes with unprivileged user activity to identify repeated attempts to trigger the condition.

How to Mitigate CVE-2024-46724

Immediate Actions Required

  • Apply the latest stable kernel update from your distribution that incorporates the upstream fix commits.
  • Prioritize patching on multi-tenant Linux systems where unprivileged users have access to AMD GPU interfaces.
  • Reboot affected hosts after kernel updates to ensure the patched kernel is active.

Patch Information

Fixes are available in the following upstream kernel commits: 32915dc, 45f7b02, 725b728, d768394, db7a866, and f926797. Debian users should install the kernel updates referenced in the Debian LTS Advisory October 2024 and Debian LTS Advisory January 2025.

Workarounds

  • Restrict local access on multi-user systems to limit which accounts can interact with the amdgpu DRM interface.
  • Unload the amdgpu kernel module on systems that do not require AMD GPU functionality until a patched kernel is installed.
  • Apply distribution-provided mitigations where available if an immediate kernel upgrade is not feasible.
bash
# Verify current kernel version and check for amdgpu usage
uname -r
lsmod | grep amdgpu

# Debian/Ubuntu: install latest kernel updates
sudo apt update && sudo apt upgrade linux-image-$(uname -r | sed 's/.*-//')
sudo reboot

# Optional: unload amdgpu where not required
sudo modprobe -r amdgpu

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.