CVE-2023-54143 media: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init()

Not scored Published Updated

A resource leak in the MediaTek video codec driver can lead to memory exhaustion and denial of service, requiring kernel patching.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-54143?

CVE-2023-54143 is a denial of service vulnerability in Linux, published on 24 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Which versions are affected by CVE-2023-54143?

How do I fix CVE-2023-54143?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-54143 being exploited?

There is no known exploitation of CVE-2023-54143 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2023-54143, DEBIAN-CVE-2023-54143, GHSA-rh3v-jp2c-rq2q, UBUNTU-CVE-2023-54143.

Is CVE-2023-54143 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free