drm/rockchip: dw_hdmi: cleanup drm encoder during unbind
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.1.306.3.46.4In 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]
From the CVE record · Linux
The Linux kernel’s Rockchip HDMI driver can use a freed DRM encoder during module removal, causing a crash. This occurs during a local `rmmod` operation; the input does not specify whether an attacker can trigger it or what permissions are required.
Engineers running Linux kernels with the Rockchip HDMI driver should check their deployments; affected versions are not specified.