CVE-2023-54143
media: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init()
Check your servers for CVE-2023-54143
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-54143 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from b199fe46f35c57a415acd4d5295b0f4e35048c11, before 858322c409e0aba8f70810d23f35c482744f007c affected from b199fe46f35c57a415acd4d5295b0f4e35048c11, before b7dbc27301f560c3b915235c53383155b3512083 affected from b199fe46f35c57a415acd4d5295b0f4e35048c11, before 451dc187cadd47771e5d9434fe220fad7be84057 affected from b199fe46f35c57a415acd4d5295b0f4e35048c11, before cf10b0bb503c974ba049d6f888b21178be20a962
Other versions: unaffected
|
| Linux |
affected 5.18 unaffected before 5.18 unaffected from 6.1.53 up to and including 6.1.* unaffected from 6.4.16 up to and including 6.4.* unaffected from 6.5.3 up to and including 6.5.* unaffected 6.6 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-54143 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54143
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-54143
trivy image --scanners vuln IMAGE | grep CVE-2023-54143
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/858322c409e0aba8f70810d23f35c482744f007c git.kernel.org
- https://git.kernel.org/stable/c/b7dbc27301f560c3b915235c53383155b3512083 git.kernel.org
- https://git.kernel.org/stable/c/451dc187cadd47771e5d9434fe220fad7be84057 git.kernel.org
- https://git.kernel.org/stable/c/cf10b0bb503c974ba049d6f888b21178be20a962 git.kernel.org
Source: the record CVE-2023-54143 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse