CVE-2023-54047 drm/rockchip: dw_hdmi: cleanup drm encoder during unbind
A use-after-free vulnerability in the Rockchip DRM HDMI driver allows local attackers with root privileges to cause a system crash during module unloading.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-54047?
CVE-2023-54047 is an use after free vulnerability in Linux, published on 24 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
drm/rockchip: dw_hdmi: cleanup drm encoder during unbind
This fixes a use-after-free crash during rmmod.
The DRM encoder is embedded inside the larger rockchip_hdmi, which is allocated with the component. The component memory gets freed before the main drm device is destroyed. Fix it by running encoder cleanup before tearing down its container.
[moved encoder cleanup above clk_disable, similar to bind-error-path]
Which versions are affected by CVE-2023-54047?
How do I fix CVE-2023-54047?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2023-54047 being exploited?
There is no known exploitation of CVE-2023-54047 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2023-54047, DEBIAN-CVE-2023-54047, GHSA-mg6p-rh4v-v7jm, ROOT-OS-DEBIAN-11-CVE-2023-54047, ROOT-OS-UBUNTU-2204-CVE-2023-54047, UBUNTU-CVE-2023-54047.