CVE-2023-54143

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

State
Published
Severity
Not scored
Published
Dec 24, 2025
Updated
May 11, 2026
Reserved
Dec 24, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • b199fe46f35c57a415acd4d5295b0f4e35048c11 to before 858322c409e0aba8f70810d23f35c482744f007cAffected
  • b199fe46f35c57a415acd4d5295b0f4e35048c11 to before b7dbc27301f560c3b915235c53383155b3512083Affected
  • b199fe46f35c57a415acd4d5295b0f4e35048c11 to before 451dc187cadd47771e5d9434fe220fad7be84057Affected
  • b199fe46f35c57a415acd4d5295b0f4e35048c11 to before cf10b0bb503c974ba049d6f888b21178be20a962Affected
LinuxLinux
  • 5.18Affected
  • before 5.18Not affected
  • 6.1.53 through 6.1.*Not affected
  • 6.4.16 through 6.4.*Not affected
  • 6.5.3 through 6.5.*Not affected
  • 6.6 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.