CVE-2026-139440

drm/rockchip: dw_hdmi_qp: Fix invalid drvdata access in PM ops

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

drm/rockchip: dw_hdmi_qp: Fix invalid drvdata access in PM ops

The system-sleep PM callbacks fetch the driver state via
dev_get_drvdata() 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,
dev_get_drvdata() returns NULL.

- After ->unbind(), or when ->bind() fails past platform_set_drvdata(),
drvdata is left pointing to memory obtained via drmm_kzalloc(), 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.

Analysis

AI-generated

Technical impact

The flaw resides in the Linux kernel DRM Rockchip dw_hdmi_qp driver. A system-sleep flush triggers PM callbacks that fetch driver state via dev_get_drvdata(). If no driver state exists or has been freed, the callbacks dereference a NULL or dangling pointer. This leads to a kernel panic or memory corruption, allowing the kernel to crash or potentially execute arbitrary code. The core weakness is a null pointer and use‑after‑free access in kernel space.

Affected Systems

Affected systems are any Linux installations that include the Rockchip DRM dw_hdmi_qp component of the Linux kernel. The vulnerability applies before the driver’s probe completes bind or after unbind. No specific kernel version is listed, implying all kernels containing this code path prior to the patch are impacted.

Risk and Exploitability

No public exploit has been reported and the EPSS score is unavailable, but the potential for a kernel crash indicates moderate risk. Because the hook executes during suspend and resume operations, an attacker with local system access could force a suspend to trigger the fault. The fix is a kernel patch that postpones driver data publication until bind succeeds and clears it on unbind. The vulnerability is not in CISA KEV, and the lack of exploitation evidence suggests low current exploitation probability, while the severity remains high due to the kernel context.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel patch or upgrade to a kernel version that includes the fix for the dw_hdmi_qp driver.
  • If a kernel upgrade is not immediately possible, temporarily unbind the dw_hdmi_qp device from the platform driver using /sys/bus/platform/drivers/dw_hdmi_qp/unbind to prevent PM callbacks until the kernel can be updated.
  • Continuously monitor kernel logs for suspend/resume failures and stay alert for vendor security advisories regarding this issue.

Generated by OpenCVE AI on November 30, 2026 at 22:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/rockchip: dw_hdmi_qp: Fix invalid drvdata access in PM ops The system-sleep PM callbacks fetch the driver state via dev_get_drvdata() 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, dev_get_drvdata() returns NULL. - After ->unbind(), or when ->bind() fails past platform_set_drvdata(), drvdata is left pointing to memory obtained via drmm_kzalloc(), 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.
Title drm/rockchip: dw_hdmi_qp: Fix invalid drvdata access in PM ops
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM