data built 2026-10-19T13:16:53Z

Look up another CVE · open CVE-2024-56538 in the interactive tracker

CVE-2024-56538

drm: zynqmp_kms: Unplug DRM device before removal

7.8 EPSS 0.3% AV:L

Published 2024-12-27 (22 months ago) by the Linux kernel CNA. Subsystem drivers/gpu. Debian urgency: not yet assigned.

What to do, per Debian release

Debian's own status for CVE-2024-56538 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source

ReleaseStatus VersionWhat this means
Debian 12bookwormvulnerable6.1.190-1No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication.
Debian 13trixiefixed6.12.3-1Update the kernel and reboot. Fixed in 6.12.3-1. A running kernel keeps the old code until the machine restarts.
Debian 14forkyfixed6.12.3-1Update the kernel and reboot. Fixed in 6.12.3-1. A running kernel keeps the old code until the machine restarts.
Debian unstablesidfixed6.12.3-1Update the kernel and reboot. Fixed in 6.12.3-1. A running kernel keeps the old code until the machine restarts.

The vulnerability

What the bug is

Prevent userspace accesses to the DRM device from causing use-after-frees by unplugging the device before we remove it. This causes any further userspace accesses to result in an error without further calls into this driver's internals.

Where it lives

The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.

drivers/gpu/drm/xlnx/zynqmp_kms.c

What this is
DRM DRIVERS FOR XILINXMAINTAINERS section matched on drivers/gpu/drm/xlnx/ · dri-devel@lists.freedesktop.org · Maintained

Check it on the machine

grep -w CONFIG_DRM_ZYNQMP_DPSUB /boot/config-$(uname -r)

Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.

Show whether Debian builds this, per release

Debian does not build this code in 3 releases. The build rule could not be established for 1 release, so nothing is claimed about those.

  • bookworm?
  • trixie, forky, sidn
?
not established - no Makefile entry for the affected file
n
not enabled on any flavour - this release does not build the code

Where a release above reads "not established", no build rule for the affected file was found in that release's kernel tree. That is a gap in this lookup, not a finding that the code is absent.

Build switch
CONFIG_DRM_ZYNQMP_DPSUB

From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages

Signals

Published
2024-12-27 (22 months ago)source
CVSS
7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hsource recompute it
Attack vector
local (AV:L)source
EPSS
0.27%, higher than 17.8% of all CVEssource
CISA KEV
not listedthe KEV catalogue
Debian urgency
not yet assignedsource
Subsystem
drivers/gpu

Upstream fixes

The versions the CNA records as introducing and fixing this, and the commit for each. source

IntroducedFixed inCommit
5.96.6.64a17b9afe58c4
5.96.11.114fb97432e28a
5.96.12.2692f52aedccb
5.96.132e07c88914fc

Why the CNA scored it this way

Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source

AV:LAttack vector, local
The vulnerability is reached through ioctl and mmap on the local DRM primary node /dev/dri/card0 of the zynqmp-dpsub device. There is no network or remote-peer input path into this driver.
AC:LAttack complexity, low
This is not a narrow race — because drm_dev_unregister() never sets dev->unplugged, the guard state is broken permanently, so every subsequent ioctl/mmap from an already-open fd deterministically enters the torn-down driver. An attacker merely holds an fd open and loops ioctls, and the freed DMA channels, unmapped iomem, and destroyed mutex are hit reliably.
PR:LPrivileges required, low
The attacker only needs an open file descriptor on the DRM primary node, which unprivileged local users of a graphical session obtain via logind ACLs or video-group membership on these embedded/kiosk systems. The reachable dumb-buffer ioctls carry flags 0, requiring neither DRM master nor DRM_AUTH.
UI:NUser interaction, none
The attacker's process simply keeps its fd open and polls; no victim action is needed at exploitation time. On ZynqMP FPGA MPSoCs the driver teardown occurs through routine platform events such as FPGA-region/device-tree-overlay reconfiguration and module reload rather than a deliberate victim action.
S:UScope, unchanged
The corruption is confined to kernel memory within the same security authority as the kernel itself. No VM, IOMMU, or sandbox boundary is crossed.
C:HConfidentiality impact, high
The missing unmap_mapping_range() leaves userspace with live mappings of GEM DMA buffers whose backing reserved-memory pool was released by of_reserved_mem_device_release(), giving a direct read primitive into kernel memory that can be recycled for other allocations. The use-after-free on released DMA channels and driver state further enables disclosure of freed kernel object contents.
I:HIntegrity impact, high
Those same stale userspace mappings are writable, yielding a direct write-after-free into memory the kernel will reallocate, and the driver continues submitting DMA descriptors on channels already handed back via dma_release_channel(). This combination provides heap-grooming and control-flow-hijack primitives typical of an exploitable use-after-free.
A:HAvailability impact, high
Post-removal ioctls write to devres-unmapped iomem with the APB clock gated and lock a mutex_destroy()'d dp->lock, producing an oops or an AXI bus hang that wedges the SoC. Any use-after-free of this kind reliably crashes the kernel even when not weaponized further.