{"id":"CVE-2023-54143","aliases":["CVE-2023-54143"],"related":[],"kind":"vulnerability","state":"published","title":"media: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init()\n\nIf we encounter any error in the vdec_msg_queue_init() then we need\nto set \"msg_queue->wdma_addr.size = 0;\".  Normally, this is done\ninside the vdec_msg_queue_deinit() function.  However, if the\nfirst call to allocate &msg_queue->wdma_addr fails, then the\nvdec_msg_queue_deinit() function is a no-op.  For that situation, just\nset the size to zero explicitly and return.\n\nThere were two other error paths which did not clean up before returning.\nChange those error paths to goto mem_alloc_err.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init()\n\nIf we encounter any error in the vdec_msg_queue_init() then we need\nto set \"msg_queue->wdma_addr.size = 0;\".  Normally, this is done\ninside the vdec_msg_queue_deinit() function.  However, if the\nfirst call to allocate &msg_queue->wdma_addr fails, then the\nvdec_msg_queue_deinit() function is a no-op.  For that situation, just\nset the size to zero explicitly and return.\n\nThere were two other error paths which did not clean up before returning.\nChange those error paths to goto mem_alloc_err.","source":"cvelist"}],"published":"2025-12-24T13:06:56.869Z","modified":"2026-06-17T06:46:52.880Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b199fe46f35c57a415acd4d5295b0f4e35048c11","fixed":"858322c409e0aba8f70810d23f35c482744f007c","status":"affected"},{"type":"git","introduced":"b199fe46f35c57a415acd4d5295b0f4e35048c11","fixed":"b7dbc27301f560c3b915235c53383155b3512083","status":"affected"},{"type":"git","introduced":"b199fe46f35c57a415acd4d5295b0f4e35048c11","fixed":"451dc187cadd47771e5d9434fe220fad7be84057","status":"affected"},{"type":"git","introduced":"b199fe46f35c57a415acd4d5295b0f4e35048c11","fixed":"cf10b0bb503c974ba049d6f888b21178be20a962","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.18","status":"unaffected"},{"type":"semver","introduced":"6.1.53","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.4.16","lastAffected":"6.4.*","status":"unaffected"},{"type":"semver","introduced":"6.5.3","lastAffected":"6.5.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.6","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/858322c409e0aba8f70810d23f35c482744f007c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b7dbc27301f560c3b915235c53383155b3512083","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/451dc187cadd47771e5d9434fe220fad7be84057","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cf10b0bb503c974ba049d6f888b21178be20a962","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54143","url":"https://www.cve.org/CVERecord?id=CVE-2023-54143","licence":"CVE Terms of Use","modified":"2026-05-11T19:56:19.068Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54143","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54143","licence":"Public domain","modified":"2026-06-17T06:46:52.880Z"}],"updatedAt":"2026-11-25T22:58:35.193Z","epss":{"score":0.00214,"percentile":0.12447,"date":"2026-12-01T12:00:22.000Z"}}