CVE-2017-0504

HIGH

Android < 7.1.1 - Elevation of Privilege in MediaTek Components

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2017-0504. PoCs published by ScottyBauer.

AI-analyzed exploit summary This PoC exploits CVE-2017-0504, a vulnerability in the MediaTek kernel driver for Android. It triggers a buffer overflow by writing a malformed `st_cmd_head` structure with an invalid `data_len` (65534) to a device node, likely leading to a kernel crash or privilege escalation.

Description

An elevation of privilege vulnerability in MediaTek components, including the M4U driver, sound driver, touchscreen driver, GPU driver, and Command Queue driver, could enable a local malicious application to execute arbitrary code within the context of the kernel. This issue is rated as Critical due to the possibility of a local permanent device compromise, which may require reflashing the operating system to repair the device. Product: Android. Versions: N/A. Android ID: A-30074628. References: M-ALPS02829371.

Exploits (1)

github WORKING POC 682 stars
by ScottyBauer · cpoc
https://github.com/ScottyBauer/Android_Kernel_CVE_POCs/tree/master/CVE-2017-0504_mtk.c

This PoC exploits CVE-2017-0504, a vulnerability in the MediaTek kernel driver for Android. It triggers a buffer overflow by writing a malformed `st_cmd_head` structure with an invalid `data_len` (65534) to a device node, likely leading to a kernel crash or privilege escalation.

Classification
Working Poc 90%
Attack Type
Lpe
Complexity
Trivial
Reliability
Reliable
Target: MediaTek kernel driver (Android)
No auth needed
Prerequisites: Access to a vulnerable MediaTek-based Android device · Device node path (e.g., /dev/gmnode*)
devstral-2 · analyzed Feb 27, 2026 Full analysis →

References (4)

Core 4
Core References
Vendor Advisory x_refsource_confirm
https://source.android.com/security/bulletin/2017-03-01
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1037968
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/96726

Scores

CVSS v3 7.8
EPSS 0.0086
EPSS Percentile 53.7%
Attack Vector LOCAL
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Details

Status published
Products (2)
google/android < 7.1.1
Google Inc./Android
Published Mar 08, 2017
Tracked Since Feb 18, 2026