CVE-2024-38549: drm/mediatek: Add 0 size check to mtk_drm_gem_obj
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.
Security readout for executives and security teams
Plain-English summary
This Linux kernel flaw can crash affected systems that use the MediaTek DRM graphics driver when a local userspace program requests a zero-size graphics buffer. The reported impact is denial of service, not data theft or remote compromise. Public sources do not provide CVSS, CWE, or evidence of active exploitation.
Executive priority
Prioritize patching affected MediaTek-based Linux devices where local users, kiosk apps, browsers, containers with graphics access, or untrusted workloads can interact with the graphics stack. This is less urgent for non-MediaTek infrastructure or systems without local graphics exposure.
Technical view
The issue is in mtk_drm_gem_init within the MediaTek DRM GEM path. Before the fix, a zero-byte GEM/GBM buffer allocation could trigger a kernel panic. The kernel fix adds a zero-size check and returns EINVAL instead. Testing cited MT8188; broader exposure depends on affected kernel versions and MediaTek DRM driver use.
Likely exposure
Exposure is most likely on Linux systems using affected kernel builds with the MediaTek DRM graphics stack enabled. It appears local and hardware/driver-specific. Generic servers without MediaTek DRM/GPU usage are unlikely to be exposed based on the provided sources.
Exploitation context
The CVE is not in CISA KEV, and the source bundle cites no active exploitation. The described trigger requires userspace interaction with graphics buffer allocation and results in kernel panic. Treat this primarily as a local denial-of-service risk until better evidence appears.
Researcher notes
Evidence is limited to kernel resolution text, stable commit references, and a Debian LTS advisory. No CVSS, CWE, exploit status, or complete product matrix is provided. The strongest claim supported is local denial of service via kernel panic before the EINVAL fix.
Mitigation direction
Update to a kernel containing the referenced stable fix for CVE-2024-38549.
Apply relevant distribution kernel updates, including Debian LTS guidance where applicable.
Confirm vendor kernels have backported the zero-size GEM allocation check.
Reduce untrusted local application access on affected MediaTek graphics systems until patched.
For embedded fleets, request firmware or BSP updates from the device vendor.
Validation and detection
Inventory Linux hosts and devices using MediaTek DRM graphics drivers.
Map running kernel versions against the affected and fixed kernel branches.
Verify source or changelog includes the mtk_drm_gem_init zero-size check.
In staging, confirm invalid zero-size graphics allocations fail safely without kernel panic.
Track Debian or vendor advisories for package-level fixed versions.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-38549 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.