{"id":"CVE-2026-139440","state":"PUBLISHED","title":"drm/rockchip: dw_hdmi_qp: Fix invalid drvdata access in PM ops","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/rockchip: dw_hdmi_qp: Fix invalid drvdata access in PM ops\n\nThe system-sleep PM callbacks fetch the driver state via\ndev_get_drvdata() and dereference it unconditionally.  However, the\nplatform device is bound by ->probe(), which merely registers a\ncomponent, hence the callbacks may well run when no valid state is\navailable:\n\n- Before the aggregate driver calls ->bind(), e.g. when the system\n  suspends while probing is still deferred waiting for the VOP,\n  dev_get_drvdata() returns NULL.\n\n- After ->unbind(), or when ->bind() fails past platform_set_drvdata(),\n  drvdata is left pointing to memory obtained via drmm_kzalloc(), which\n  is released together with the DRM device, while this platform device\n  remains bound and PM-capable.\n\nPublish the driver data only after ->bind() completes successfully, and\nclear it in ->unbind().  This ensures that a non-NULL drvdata always\nrepresents live state, allowing each PM callback to rely on a single\nNULL check.","publishedAt":"2026-11-30T13:34:46.586Z","updatedAt":"2026-11-30T13:34:46.586Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"128a9bf8ace290d86d2805c06f3b0e4cfab75de0","status":"affected","lessThan":"0259bf47f8f78297777c12f10e11c869fef51616","versionType":"git"},{"version":"128a9bf8ace290d86d2805c06f3b0e4cfab75de0","status":"affected","lessThan":"3557e9c2b0047ef18841c19d4ea2cbc7699af834","versionType":"git"},{"version":"128a9bf8ace290d86d2805c06f3b0e4cfab75de0","status":"affected","lessThan":"b6e19848c9db535d81d6db85c7cc1324e6611791","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c"]}],"references":["https://git.kernel.org/stable/c/0259bf47f8f78297777c12f10e11c869fef51616","https://git.kernel.org/stable/c/3557e9c2b0047ef18841c19d4ea2cbc7699af834","https://git.kernel.org/stable/c/b6e19848c9db535d81d6db85c7cc1324e6611791"],"weaknesses":[],"ingestedAt":"2026-11-30T13:50:04.417Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139440.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139440","state":"PUBLISHED","datePublished":"2026-11-30T13:34:46.586Z","dateUpdated":"2026-11-30T13:34:46.586Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.934Z"},"containers":{"cna":{"title":"drm/rockchip: dw_hdmi_qp: Fix invalid drvdata access in PM ops","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/rockchip: dw_hdmi_qp: Fix invalid drvdata access in PM ops\n\nThe system-sleep PM callbacks fetch the driver state via\ndev_get_drvdata() and dereference it unconditionally.  However, the\nplatform device is bound by ->probe(), which merely registers a\ncomponent, hence the callbacks may well run when no valid state is\navailable:\n\n- Before the aggregate driver calls ->bind(), e.g. when the system\n  suspends while probing is still deferred waiting for the VOP,\n  dev_get_drvdata() returns NULL.\n\n- After ->unbind(), or when ->bind() fails past platform_set_drvdata(),\n  drvdata is left pointing to memory obtained via drmm_kzalloc(), which\n  is released together with the DRM device, while this platform device\n  remains bound and PM-capable.\n\nPublish the driver data only after ->bind() completes successfully, and\nclear it in ->unbind().  This ensures that a non-NULL drvdata always\nrepresents live state, allowing each PM callback to rely on a single\nNULL check."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"128a9bf8ace290d86d2805c06f3b0e4cfab75de0","status":"affected","lessThan":"0259bf47f8f78297777c12f10e11c869fef51616","versionType":"git"},{"version":"128a9bf8ace290d86d2805c06f3b0e4cfab75de0","status":"affected","lessThan":"3557e9c2b0047ef18841c19d4ea2cbc7699af834","versionType":"git"},{"version":"128a9bf8ace290d86d2805c06f3b0e4cfab75de0","status":"affected","lessThan":"b6e19848c9db535d81d6db85c7cc1324e6611791","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0259bf47f8f78297777c12f10e11c869fef51616"},{"url":"https://git.kernel.org/stable/c/3557e9c2b0047ef18841c19d4ea2cbc7699af834"},{"url":"https://git.kernel.org/stable/c/b6e19848c9db535d81d6db85c7cc1324e6611791"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:34:46.586Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}