CVE-2026-139440: drm/rockchip: dw_hdmi_qp: Fix invalid drvdata access in PM ops
In the Linux kernel, the following vulnerability has been resolved:
drm/rockchip: dwhdmiqp: Fix invalid drvdata access in PM ops
The system-sleep PM callbacks fetch the driver state via devgetdrvdata() and dereference it unconditionally. However, the platform device is bound by ->probe(), which merely registers a component, hence the callbacks may well run when no valid state is available:
- Before the aggregate driver calls ->bind(), e.g. when the system suspends while probing is still deferred waiting for the VOP, devgetdrvdata() returns NULL.
- After ->unbind(), or when ->bind() fails past platformsetdrvdata(), drvdata is left pointing to memory obtained via drmmkzalloc(), which is released together with the DRM device, while this platform device remains bound and PM-capable.
Publish the driver data only after ->bind() completes successfully, and clear it in ->unbind(). This ensures that a non-NULL drvdata always represents live state, allowing each PM callback to rely on a single NULL check.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
For drm/rockchip dw_hdmi_qp, publish driver data only after ->bind() succeeds and clear it in ->unbind(), so PM callbacks do not use stale or unavailable drvdata.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel Rockchip DW HDMI QP DRM driver are affected when its system-sleep power-management callbacks can run while the component has not successfully bound, after it has unbound, or after binding fails.
What condition triggers the invalid access?
A system suspend or other system-sleep PM callback must occur while dev_get_drvdata() returns no valid live driver state. This can happen during deferred probing while waiting for the VOP, or after driver state allocated with drmm_kzalloc() has been released but stale drvdata remains.
How does the fix prevent the issue?
The fix publishes driver data only after bind completes successfully and clears it during unbind. PM callbacks can then use a NULL check so that non-NULL drvdata represents live state.