CVE-2023-54143

published 24 Dec 2025 · updated 11 May 2026

media: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init()

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 451dc187cadd47771e5d9434fe220fad7be84057, Kernel 858322c409e0aba8f70810d23f35c482744f007c, Kernel b7dbc27301f560c3b915235c53383155b3512083 and 1 more.

In the Linux kernel, the following vulnerability has been resolved: media: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init() If we encounter any error in the vdec_msg_queue_init() then we need to set "msg_queue->wdma_addr.size = 0;". Normally, this is done inside the vdec_msg_queue_deinit() function. However, if the first call to allocate &msg_queue->wdma_addr fails, then the vdec_msg_queue_deinit() function is a no-op. For that situation, just set the size to zero explicitly and return. There were two other error paths which did not clean up before returning. Change those error paths to goto mem_alloc_err.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.18, >=b199fe46f35c57a415acd4d5295b0f4e35048c11 <451dc187cadd47771e5d9434fe220fad7be84057, >=b199fe46f35c57a415acd4d5295b0f4e35048c11 <858322c409e0aba8f70810d23f35c482744f007c, >=b199fe46f35c57a415acd4d5295b0f4e35048c11 <b7dbc27301f560c3b915235c53383155b3512083, >=b199fe46f35c57a415acd4d5295b0f4e35048c11 <cf10b0bb503c974ba049d6f888b21178be20a962451dc187cadd47771e5d9434fe220fad7be84057, 858322c409e0aba8f70810d23f35c482744f007c, b7dbc27301f560c3b915235c53383155b3512083, cf10b0bb503c974ba049d6f888b21178be20a962

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-54143 severity on Zeptric[![CVE-2023-54143](https://zeptric.io/badge/cve/CVE-2023-54143.svg)](https://zeptric.io/cve/CVE-2023-54143)