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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-12-24T13:06:56.869Z
- **Modified:** 2026-06-17T06:46:52.880Z

## Who should check

- Anyone running Linux \>= b199fe46f35c57a415acd4d5295b0f4e35048c11, \< 858322c409e0aba8f70810d23f35c482744f007c; \>= b199fe46f35c57a415acd4d5295b0f4e35048c11, \< b7dbc27301f560c3b915235c53383155b3512083; \>= b199fe46f35c57a415acd4d5295b0f4e35048c11, \< 451dc187cadd47771e5d9434fe220fad7be84057; \>= b199fe46f35c57a415acd4d5295b0f4e35048c11, \< cf10b0bb503c974ba049d6f888b21178be20a962
- Anyone running 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.

## Affected and fixed versions

- Linux: \>= b199fe46f35c57a415acd4d5295b0f4e35048c11, \< 858322c409e0aba8f70810d23f35c482744f007c; \>= b199fe46f35c57a415acd4d5295b0f4e35048c11, \< b7dbc27301f560c3b915235c53383155b3512083; \>= b199fe46f35c57a415acd4d5295b0f4e35048c11, \< 451dc187cadd47771e5d9434fe220fad7be84057; \>= b199fe46f35c57a415acd4d5295b0f4e35048c11, \< cf10b0bb503c974ba049d6f888b21178be20a962 (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54143. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54143.md
Affected: Linux >= b199fe46f35c57a415acd4d5295b0f4e35048c11, < 858322c409e0aba8f70810d23f35c482744f007c; >= b199fe46f35c57a415acd4d5295b0f4e35048c11, < b7dbc27301f560c3b915235c53383155b3512083; >= b199fe46f35c57a415acd4d5295b0f4e35048c11, < 451dc187cadd47771e5d9434fe220fad7be84057; >= b199fe46f35c57a415acd4d…
Fixed in: Linux 858322c409e0aba8f70810d23f35c482744f007c, Linux 451dc187cadd47771e5d9434fe220fad7be84057

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-54143 being exploited?

There is no confirmed exploitation: CVE-2023-54143 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-54143?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-54143?

Linux \>= b199fe46f35c57a415acd4d5295b0f4e35048c11, \< 858322c409e0aba8f70810d23f35c482744f007c; \>= b199fe46f35c57a415acd4d5295b0f4e35048c11, \< b7dbc27301f560c3b915235c53383155b3512083; \>= b199fe46f35c57a415acd4d5295b0f4e35048c11, \< 451dc187cadd47771e5d9434fe220fad7be84057; \>= b199fe46f35c57a415acd4d5295b0f4e35048c11, \< cf10b0bb503c974ba049d6f888b21178be20a962; Linux 5.18.

### Is there a fix for CVE-2023-54143?

Yes. Fixed in Linux 858322c409e0aba8f70810d23f35c482744f007c, Linux 451dc187cadd47771e5d9434fe220fad7be84057. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54143?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54143>

HTML: <https://flawdb.com/CVE-2023-54143> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54143>
