# CVE-2024-38549: drm/mediatek: Add 0 size check to mtk\_drm\_gem\_obj

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-06-19 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2024-38549, DEBIAN-CVE-2024-38549
- Record: https://cvemate.com/vulnerability/CVE-2024-38549 · JSON: https://cvemate.com/vulnerability/CVE-2024-38549/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.281%, percentile 22.066%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 131)

- debian linux (Debian): \< 6.1.94-1 \| \< 6.8.12-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-192.212 \| \< 5.15.0-121.131 \| \< 6.8.0-40.40
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1130.140 \| \< 5.15.0-1069.75 \| \< 6.8.0-1013.14
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1069.75~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1130.140~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1013.14~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1130.140+fips1 \| \< 5.15.0-1069.75+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1135.142 \| \< 5.15.0-1072.81 \| \< 6.8.0-1012.14
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 31)

- <https://git.kernel.org/stable/c/79078880795478d551a05acc41f957700030d364>
- <https://git.kernel.org/stable/c/be34a1b351ea7faeb15dde8c44fe89de3980ae67>
- <https://git.kernel.org/stable/c/d17b75ee9c2e44d3a3682c4ea5ab713ea6073350>
- <https://git.kernel.org/stable/c/0e3b6f9123726858cac299e1654e3d20424cabe4>
- <https://git.kernel.org/stable/c/13562c2d48c9ee330de1077d00146742be368f05>
- <https://git.kernel.org/stable/c/af26ea99019caee1500bf7e60c861136c0bf8594>
- <https://git.kernel.org/stable/c/9489951e3ae505534c4013db4e76b1b5a3151ac7>
- <https://git.kernel.org/stable/c/fb4aabdb1b48c25d9e1ee28f89440fd2ce556405>
- <https://git.kernel.org/stable/c/1e4350095e8ab2577ee05f8c3b044e661b5af9a0>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- <https://ubuntu.com/security/CVE-2024-38549>
- <https://www.cve.org/CVERecord?id=CVE-2024-38549>
- <https://git.kernel.org/linus/1e4350095e8ab2577ee05f8c3b044e661b5af9a0>
- <https://ubuntu.com/security/notices/USN-6949-1>
- <https://ubuntu.com/security/notices/USN-6951-1>
- <https://ubuntu.com/security/notices/USN-6952-1>
- <https://ubuntu.com/security/notices/USN-6953-1>
- <https://ubuntu.com/security/notices/USN-6955-1>
- <https://ubuntu.com/security/notices/USN-6949-2>
- <https://ubuntu.com/security/notices/USN-6952-2>

---

Data as of 2026-12-05T04:08:02.350Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
