{"id":"CVE-2026-74421","aliases":["CVE-2026-74421"],"related":[],"kind":"vulnerability","state":"published","title":"drm/rockchip: dw_dp: Switch to drmm_kzalloc()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/rockchip: dw_dp: Switch to drmm_kzalloc()\n\nDriver makes use of drmm_encoder_init() to initialize the encoder and\nautomatically handle the cleanup by registering drm_encoder_cleanup()\nwith drmm_add_action().\n\nHowever, the internal structure containing the encoder part gets\nallocated with devm_kzalloc(), which happens while component_bind_all()\nis being called from Rockchip DRM driver.  The component framework\nfurther ensures it is deallocated as part of releasing all the resources\nclaimed during bind, which is triggered from component_unbind_all().\n\nWhen the reference to the DRM device gets eventually dropped via\ndrm_dev_put() in rockchip_drm_unbind(), drmm_encoder_alloc_release()\nattempts to access the now released encoder structure, leading to\nuse-after-free.\n\nEnsure driver's internal structure is still reachable on encoder cleanup\nby switching from a device-managed allocation to a drm-managed one.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/rockchip: dw_dp: Switch to drmm_kzalloc()\n\nDriver makes use of drmm_encoder_init() to initialize the encoder and\nautomatically handle the cleanup by registering drm_encoder_cleanup()\nwith drmm_add_action().\n\nHowever, the internal structure containing the encoder part gets\nallocated with devm_kzalloc(), which happens while component_bind_all()\nis being called from Rockchip DRM driver.  The component framework\nfurther ensures it is deallocated as part of releasing all the resources\nclaimed during bind, which is triggered from component_unbind_all().\n\nWhen the reference to the DRM device gets eventually dropped via\ndrm_dev_put() in rockchip_drm_unbind(), drmm_encoder_alloc_release()\nattempts to access the now released encoder structure, leading to\nuse-after-free.\n\nEnsure driver's internal structure is still reachable on encoder cleanup\nby switching from a device-managed allocation to a drm-managed one.","source":"cvelist"}],"published":"2026-08-15T05:59:25.328Z","modified":"2026-08-17T06:19:37.550Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"d68ba7bac9555d05e2f5b310c898b2a5c7eff174","fixed":"0d60b835bca42f0f790689dd47819ed881a92ccc","status":"affected"},{"type":"git","introduced":"d68ba7bac9555d05e2f5b310c898b2a5c7eff174","fixed":"6b0b92d1110eccccbd5ba2949bd2b9fb6ea5fc12","status":"affected"},{"type":"git","introduced":"d68ba7bac9555d05e2f5b310c898b2a5c7eff174","fixed":"ed9da8d23020352ad24c528db09b5acdd78b81fd","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.40","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.5","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","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/0d60b835bca42f0f790689dd47819ed881a92ccc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6b0b92d1110eccccbd5ba2949bd2b9fb6ea5fc12","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ed9da8d23020352ad24c528db09b5acdd78b81fd","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-74421","url":"https://www.cve.org/CVERecord?id=CVE-2026-74421","licence":"CVE Terms of Use","modified":"2026-08-17T05:19:06.310Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-74421","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74421","licence":"Public domain","modified":"2026-08-17T06:19:37.550Z"}],"updatedAt":"2026-11-25T22:59:33.204Z","epss":{"score":0.00155,"percentile":0.04888,"date":"2026-12-01T12:00:22.000Z"}}