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-56551 Overview
CVE-2024-56551 is a use-after-free vulnerability [CWE-416] in the Linux kernel's AMD GPU (amdgpu) driver. The flaw resides in the Direct Rendering Manager (DRM) scheduler path, specifically in drm_sched_entity_flush within the gpu_sched module. Kernel Address Sanitizer (KASAN) reports a slab-use-after-free triggered during PCI unplug of an AMD GPU device. The condition surfaces when the amdgpu_vce_sw_fini teardown path invokes drm_sched_entity_destroy on a scheduler entity whose backing allocation has already been freed. Local users with access to the GPU device can trigger the issue through driver release paths such as closing the DRM file descriptor.
Critical Impact
Local attackers can trigger kernel memory corruption during GPU teardown, potentially enabling privilege escalation or denial of service on systems with AMD GPUs.
Affected Products
- Linux Kernel (amdgpu driver, gpu_sched module)
- Debian LTS distributions shipping affected kernel versions
- Systems using AMD GPUs with the VCE (Video Coding Engine) subsystem
Discovery Timeline
- 2024-12-27 - CVE-2024-56551 published to the National Vulnerability Database
- 2025-03 - Debian LTS security announcement released
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-56551
Vulnerability Analysis
The vulnerability is a slab use-after-free in the DRM GPU scheduler, categorized under [CWE-416]. The KASAN report shows an 8-byte read at a freed address inside drm_sched_entity_flush+0x6cb/0x7a0 during execution of a PCI unplug test (amd_pci_unplug). The call chain travels from the close() syscall through drm_release, drm_minor_release, amdgpu_driver_release_kms, amdgpu_device_fini_sw, and vce_v4_0_sw_fini into amdgpu_vce_sw_fini. That function calls drm_sched_entity_destroy, which in turn calls drm_sched_entity_flush on an entity tied to a scheduler object that has already been released. The freed allocation was originally created by drm_sched_init through kmalloc_trace_noprof during amdgpu_device_init.
Root Cause
The root cause is incorrect ordering of resource cleanup between the AMD VCE subsystem and the DRM scheduler. The scheduler structure backing the VCE entity is freed before drm_sched_entity_flush dereferences it, producing a classic use-after-free. The fix adjusts the teardown sequence so that scheduler entities are flushed and destroyed before their underlying scheduler state is released.
Attack Vector
Exploitation requires local access and the ability to open and close the AMD GPU DRM device, or to trigger a PCI unplug event. A local user who can hold file descriptors on /dev/dri/* nodes can race driver teardown to reach the vulnerable path. Memory corruption in kernel slab allocations can lead to denial of service and, under favorable heap conditions, local privilege escalation.
No verified public exploit code is available. The vulnerability is described in prose only; refer to the upstream commits for the patched teardown sequence: Kernel Git Commit 3990ef7, Kernel Git Commit 6383199, and Kernel Git Commit b61badd.
Detection Methods for CVE-2024-56551
Indicators of Compromise
- KASAN reports in dmesg containing slab-use-after-free in drm_sched_entity_flush with the gpu_sched module tag.
- Unexpected kernel oops or panic traces referencing amdgpu_vce_sw_fini, vce_v4_0_sw_fini, or drm_sched_entity_destroy during device teardown or PCI unplug.
- Repeated crashes correlated with processes opening and closing DRM device nodes under /dev/dri/.
Detection Strategies
- Enable KASAN on test or canary kernels to surface the specific slab-use-after-free signature in the drm_sched_entity_flush path.
- Audit installed kernel package versions against the fixed commits from kernel.org and the Debian LTS advisory.
- Monitor local user activity that exercises GPU hot-unplug or repeatedly opens AMD DRM device nodes.
Monitoring Recommendations
- Forward kernel ring buffer logs to a centralized logging platform and alert on KASAN, BUG:, and general protection fault entries referencing amdgpu or gpu_sched.
- Track process access to /dev/dri/card* and /dev/dri/renderD* nodes by non-privileged users.
- Correlate kernel crash telemetry with workloads that use VCE, such as hardware-accelerated video encoding.
How to Mitigate CVE-2024-56551
Immediate Actions Required
- Update to a Linux kernel release that includes the upstream fix commits for the amdgpu DRM scheduler teardown ordering.
- Apply distribution kernel updates, including the Debian LTS packages announced in the March 2025 advisory.
- Restrict local access to AMD GPU DRM device nodes to trusted users and groups where feasible.
Patch Information
The fix is applied in upstream kernel commits 3990ef7, 6383199, and b61badd, with related changes in commits 05b1b33 and 3cc1116. Debian users should install updates per the Debian LTS Security Announcement.
Workarounds
- Avoid PCI hot-unplug operations on AMD GPU devices on unpatched kernels.
- Blacklist the amdgpu module on systems where the AMD GPU is not required, using /etc/modprobe.d/ configuration.
- Tighten permissions on /dev/dri/* so only trusted groups such as video and render can open the devices.
# Verify installed kernel version and reboot after patching
uname -r
sudo apt update && sudo apt upgrade linux-image-$(uname -r | cut -d- -f3-)
sudo reboot
# Optional: restrict DRM device access to the video group
ls -l /dev/dri/
sudo chown root:video /dev/dri/card*
sudo chmod 0660 /dev/dri/card*
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

