{"id":"CVE-2023-54147","summary":"media: platform: mtk-mdp3: Add missing check and free for ida_alloc","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: platform: mtk-mdp3: Add missing check and free for ida_alloc\n\nAdd the check for the return value of the ida_alloc in order to avoid\nNULL pointer dereference.\nMoreover, free allocated \"ctx-\u003eid\" if mdp_m2m_open fails later in order\nto avoid memory leak.","modified":"2026-04-02T09:45:37.744008Z","published":"2025-12-24T13:06:59.566Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54147.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/22b72cad501fb75500cc60af4d92de3066fb6fc2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4c173a65a2b1cc0556c3f6f0bab82e4fdb449522"},{"type":"WEB","url":"https://git.kernel.org/stable/c/51fc1880e47421ee7b192372e8e86b7bbba40776"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d00f592250782538cda87745607695b0fe27dcd4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54147.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54147"},{"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":"61890ccaefaff89f5babd2c8412fd222c3f5fe38"},{"fixed":"51fc1880e47421ee7b192372e8e86b7bbba40776"},{"fixed":"4c173a65a2b1cc0556c3f6f0bab82e4fdb449522"},{"fixed":"22b72cad501fb75500cc60af4d92de3066fb6fc2"},{"fixed":"d00f592250782538cda87745607695b0fe27dcd4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54147.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.28"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.2.15"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.3.0"},{"fixed":"6.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54147.json"}}],"schema_version":"1.7.5"}