CVE-2023-54147
media: platform: mtk-mdp3: Add missing check and free for ida_alloc
Check your servers for CVE-2023-54147
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-54147 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: platform: mtk-mdp3: Add missing check and free for ida_alloc
Add the check for the return value of the ida_alloc in order to avoid NULL pointer dereference. Moreover, free allocated "ctx->id" if mdp_m2m_open fails later in order to avoid memory leak.
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 61890ccaefaff89f5babd2c8412fd222c3f5fe38, before 51fc1880e47421ee7b192372e8e86b7bbba40776 affected from 61890ccaefaff89f5babd2c8412fd222c3f5fe38, before 4c173a65a2b1cc0556c3f6f0bab82e4fdb449522 affected from 61890ccaefaff89f5babd2c8412fd222c3f5fe38, before 22b72cad501fb75500cc60af4d92de3066fb6fc2 affected from 61890ccaefaff89f5babd2c8412fd222c3f5fe38, before d00f592250782538cda87745607695b0fe27dcd4
Other versions: unaffected
|
| Linux |
affected 6.1 unaffected before 6.1 unaffected from 6.1.28 up to and including 6.1.* unaffected from 6.2.15 up to and including 6.2.* unaffected from 6.3.2 up to and including 6.3.* unaffected 6.4 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-54147 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54147
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-54147
trivy image --scanners vuln IMAGE | grep CVE-2023-54147
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/51fc1880e47421ee7b192372e8e86b7bbba40776 git.kernel.org
- https://git.kernel.org/stable/c/4c173a65a2b1cc0556c3f6f0bab82e4fdb449522 git.kernel.org
- https://git.kernel.org/stable/c/22b72cad501fb75500cc60af4d92de3066fb6fc2 git.kernel.org
- https://git.kernel.org/stable/c/d00f592250782538cda87745607695b0fe27dcd4 git.kernel.org
Source: the record CVE-2023-54147 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