The Qualcomm DSP Driver – Unexpectedly excavating an exploit
The adsprpc driver had a refcount leak leading to a use-after-free and a compatibility flag that allowed userland pointers to be treated as kernel pointers, enabling memory corruption and kernel address reads. An attacker could exploit these to escalate privileges or cause kernel panics.
googleprojectzero.blogspot.com
Published on googleprojectzero.blogspot.com
This blog post provides a technical analysis of exploit artifacts provided to us by Google's Threat Analysis Group (TAG) from Amnesty International. Amnesty’s report on these exploits is available here.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing refcount decrement and a global compatibility flag that was never reset, leading to unsafe memory operations.
Impact
An attacker could cause kernel memory corruption, potentially leading to privilege escalation or denial of service.
What the attacker needed
Access to adsprpc driver via dspservice
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 write-up has not been written yet. The Original tab links to the source.
A driver in Android phones had two bugs: one leaked a reference count, eventually causing memory to be freed while still in use, and another let a 64-bit app trick the kernel into treating its own memory addresses as kernel addresses. This could let an attacker crash the phone or run code with high privileges.
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.