{"id":"CVE-2026-74422","summary":"drm/rockchip: inno-hdmi: Switch to drmm_kzalloc()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/rockchip: inno-hdmi: 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.","modified":"2026-08-16T03:48:35.227761699Z","published":"2026-08-15T05:59:25.955Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74422.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/195ab348af4b2bdf5988f9397059317bb68fd797"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3cc50e7f73fcf79f28660b9d91566b13cb62e520"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74422.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74422"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"969325a2597ebc4cb001a92992f06f698ab2b467"},{"fixed":"195ab348af4b2bdf5988f9397059317bb68fd797"},{"fixed":"3cc50e7f73fcf79f28660b9d91566b13cb62e520"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74422.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0"},{"fixed":"7.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74422.json"}}],"schema_version":"1.9.0"}