{"id":"CVE-2023-54143","published":"2025-12-24T13:06:56Z","modified":"2026-05-11T19:56:19Z","title":"media: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init()","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00277,"percentile":0.12801,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/858322c409e0aba8f70810d23f35c482744f007c","tags":[]},{"url":"https://git.kernel.org/stable/c/b7dbc27301f560c3b915235c53383155b3512083","tags":[]},{"url":"https://git.kernel.org/stable/c/451dc187cadd47771e5d9434fe220fad7be84057","tags":[]},{"url":"https://git.kernel.org/stable/c/cf10b0bb503c974ba049d6f888b21178be20a962","tags":[]}],"priority":{"score":2.6,"factors":[{"name":"EPSS percentile","points":2.56}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b199fe46f35c57a415acd4d5295b0f4e35048c11, < 858322c409e0aba8f70810d23f35c482744f007c",">= b199fe46f35c57a415acd4d5295b0f4e35048c11, < b7dbc27301f560c3b915235c53383155b3512083",">= b199fe46f35c57a415acd4d5295b0f4e35048c11, < 451dc187cadd47771e5d9434fe220fad7be84057",">= b199fe46f35c57a415acd4d5295b0f4e35048c11, < cf10b0bb503c974ba049d6f888b21178be20a962"]},{"vendor":"Linux","product":"Linux","versions":["5.18"]}],"euvd":{"id":"EUVD-2023-60302","exploited":false,"provenance":"source"}}