CVE-2024-38549

drm/mediatek: Add 0 size check to mtk_drm_gem_obj

MEDIUM
5.5
CVSS Score
Published: June 19, 2024 at 01:35 PM UTC
Updated: June 17, 2026 at 07:40 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.20 ≤ v < 5.4.2784.7 ≤ v < 4.19.3164.7 ≤ v < 5.10.2194.7 ≤ v < 5.15.1614.7 ≤ v < 5.4.2784.7 ≤ v < 6.1.934.7 ≤ v < 6.104.7 ≤ v < 6.6.334.7 ≤ v < 6.8.124.7 ≤ v < 6.9.35.11 ≤ v < 5.15.1615.16 ≤ v < 6.1.935.5 ≤ v < 5.10.2196.2 ≤ v < 6.6.336.7 ≤ v < 6.8.126.9 ≤ v < 6.9.3119f5173628aa7a0c3cf9db83460d40709e8241d4.7
Vendor states this is fixed in 0e3b6f9123726858cac299e1654e3d20424cabe4 (fixed)
Vendor states this is fixed in 13562c2d48c9ee330de1077d00146742be368f05 (fixed)
Vendor states this is fixed in 1e4350095e8ab2577ee05f8c3b044e661b5af9a0 (fixed)
Vendor states this is fixed in 79078880795478d551a05acc41f957700030d364 (fixed)
Vendor states this is fixed in 9489951e3ae505534c4013db4e76b1b5a3151ac7 (fixed)
Vendor states this is fixed in af26ea99019caee1500bf7e60c861136c0bf8594 (fixed)
Vendor states this is fixed in be34a1b351ea7faeb15dde8c44fe89de3980ae67 (fixed)
Vendor states this is fixed in d17b75ee9c2e44d3a3682c4ea5ab713ea6073350 (fixed)
Vendor states this is fixed in fb4aabdb1b48c25d9e1ee28f89440fd2ce556405 (fixed)
Vendor states this is fixed in 4.19.316 (unaffected)
Vendor states this is fixed in 4.7 (unaffected)
Vendor states this is fixed in 5.10.219 (unaffected)
Vendor states this is fixed in 5.15.161 (unaffected)
Vendor states this is fixed in 5.4.278 (unaffected)
Vendor states this is fixed in 6.1.93 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.33 (unaffected)
Vendor states this is fixed in 6.8.12 (unaffected)
Vendor states this is fixed in 6.9.3 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0e3b6f9123726858cac299e1654e3d20424cabe4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/13562c2d48c9ee330de1077d00146742be368f05
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1e4350095e8ab2577ee05f8c3b044e661b5af9a0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/79078880795478d551a05acc41f957700030d364
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9489951e3ae505534c4013db4e76b1b5a3151ac7
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/af26ea99019caee1500bf7e60c861136c0bf8594
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/be34a1b351ea7faeb15dde8c44fe89de3980ae67
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d17b75ee9c2e44d3a3682c4ea5ab713ea6073350

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card