{"id":"CVE-2026-139440","aliases":["CVE-2026-139440"],"related":[],"kind":"vulnerability","state":"published","title":"drm/rockchip: dw_hdmi_qp: Fix invalid drvdata access in PM ops","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:34:46.586Z","modified":"2026-11-30T14:19:14.360Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"128a9bf8ace290d86d2805c06f3b0e4cfab75de0","fixed":"0259bf47f8f78297777c12f10e11c869fef51616","status":"affected"},{"type":"git","introduced":"128a9bf8ace290d86d2805c06f3b0e4cfab75de0","fixed":"3557e9c2b0047ef18841c19d4ea2cbc7699af834","status":"affected"},{"type":"git","introduced":"128a9bf8ace290d86d2805c06f3b0e4cfab75de0","fixed":"b6e19848c9db535d81d6db85c7cc1324e6611791","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0259bf47f8f78297777c12f10e11c869fef51616","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3557e9c2b0047ef18841c19d4ea2cbc7699af834","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b6e19848c9db535d81d6db85c7cc1324e6611791","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139440","url":"https://www.cve.org/CVERecord?id=CVE-2026-139440","licence":"CVE Terms of Use","modified":"2026-11-30T13:34:46.586Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139440","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139440","licence":"Public domain","modified":"2026-11-30T14:19:14.360Z"}],"updatedAt":"2026-11-30T14:33:24.315Z","epss":{"score":0.00198,"percentile":0.10119,"date":"2026-12-01T12:00:22.000Z"}}