Skip to contentSkip to conversation

CVE-2023-54047: drm/rockchip: dw_hdmi: cleanup drm encoder during unbind

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 24, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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]

The Linux kernel CVE team has assigned CVE-2023-54047 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.1.30 with commit 110d4202522373d629d14597af9bac97eb58bd67
	Fixed in 6.3.4 with commit 218fe9b624545f4bcfb16cdb35ac3d60c8b0d8c7
	Fixed in 6.4 with commit b5af48eedcb53491c02ded55d5991e03d6da6dbf

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2023-54047

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/110d4202522373d629d14597af9bac97eb58bd67
	https://git.kernel.org/stable/c/218fe9b624545f4bcfb16cdb35ac3d60c8b0d8c7
	https://git.kernel.org/stable/c/b5af48eedcb53491c02ded55d5991e03d6da6dbf