Google Android fts_driver_test_write Heap-based Buffer Overflow Privilege Escalation Vulnerability
A heap-based buffer overflow in the fts_driver_test_write function of Google Android allows a local attacker with low-privileged code execution to escalate privileges and execute code in the kernel context. The flaw arises from missing validation of user-supplied data length before copying to a fixed-length heap buffer.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to execute arbitrary code on affected installations of Google Android. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
A local attacker who can already run low-privileged code could escalate to kernel-level code execution, potentially compromising the entire device.
What the attacker needed
Local low-privileged code execution on the device
The fix
Google issued an update to correct this vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a memory corruption bug in a part of Android that handles touchscreen driver test commands. A program running with limited permissions can send too much data to a function that copies it into a small fixed-size memory area, overflowing it. That lets the attacker run code with the highest privileges, the kernel, taking full control of the device.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.