CVE-2024-38549
drm/mediatek: Add 0 size check to mtk_drm_gem_obj
Check your servers for CVE-2024-38549
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-2024-38549 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:
drm/mediatek: Add 0 size check to mtk_drm_gem_obj
Add a check to mtk_drm_gem_init if we attempt to allocate a GEM object of 0 bytes. Currently, no such check exists and the kernel will panic if a userspace application attempts to allocate a 0x0 GBM buffer.
Tested by attempting to allocate a 0x0 GBM buffer on an MT8188 and verifying that we now return EINVAL.
Exploitation
EPSS 0.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 22.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 119f5173628aa7a0c3cf9db83460d40709e8241d, before 79078880795478d551a05acc41f957700030d364 affected from 119f5173628aa7a0c3cf9db83460d40709e8241d, before be34a1b351ea7faeb15dde8c44fe89de3980ae67 affected from 119f5173628aa7a0c3cf9db83460d40709e8241d, before d17b75ee9c2e44d3a3682c4ea5ab713ea6073350 affected from 119f5173628aa7a0c3cf9db83460d40709e8241d, before 0e3b6f9123726858cac299e1654e3d20424cabe4 affected from 119f5173628aa7a0c3cf9db83460d40709e8241d, before 13562c2d48c9ee330de1077d00146742be368f05 affected from 119f5173628aa7a0c3cf9db83460d40709e8241d, before af26ea99019caee1500bf7e60c861136c0bf8594 affected from 119f5173628aa7a0c3cf9db83460d40709e8241d, before 9489951e3ae505534c4013db4e76b1b5a3151ac7 affected from 119f5173628aa7a0c3cf9db83460d40709e8241d, before fb4aabdb1b48c25d9e1ee28f89440fd2ce556405 affected from 119f5173628aa7a0c3cf9db83460d40709e8241d, before 1e4350095e8ab2577ee05f8c3b044e661b5af9a0
Other versions: unaffected
|
| Linux |
affected 4.7 unaffected before 4.7 unaffected from 4.19.316 up to and including 4.19.* unaffected from 5.4.278 up to and including 5.4.* unaffected from 5.10.219 up to and including 5.10.* unaffected from 5.15.161 up to and including 5.15.* unaffected from 6.1.93 up to and including 6.1.* unaffected from 6.6.33 up to and including 6.6.* unaffected from 6.8.12 up to and including 6.8.* unaffected from 6.9.3 up to and including 6.9.* unaffected 6.10 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-2024-38549 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-38549
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-2024-38549
trivy image --scanners vuln IMAGE | grep CVE-2024-38549
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/79078880795478d551a05acc41f957700030d364 git.kernel.org
- https://git.kernel.org/stable/c/be34a1b351ea7faeb15dde8c44fe89de3980ae67 git.kernel.org
- https://git.kernel.org/stable/c/d17b75ee9c2e44d3a3682c4ea5ab713ea6073350 git.kernel.org
- https://git.kernel.org/stable/c/0e3b6f9123726858cac299e1654e3d20424cabe4 git.kernel.org
- https://git.kernel.org/stable/c/13562c2d48c9ee330de1077d00146742be368f05 git.kernel.org
- https://git.kernel.org/stable/c/af26ea99019caee1500bf7e60c861136c0bf8594 git.kernel.org
- https://git.kernel.org/stable/c/9489951e3ae505534c4013db4e76b1b5a3151ac7 git.kernel.org
- https://git.kernel.org/stable/c/fb4aabdb1b48c25d9e1ee28f89440fd2ce556405 git.kernel.org
- https://git.kernel.org/stable/c/1e4350095e8ab2577ee05f8c3b044e661b5af9a0 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html lists.debian.org
Source: the record CVE-2024-38549 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse