# A 0-click exploit chain for the Pixel 9 Part 1: Decoding Dolby

Integer overflow in Dolby Unified Decoder's evo_malloc lets a crafted DD+ audio file overrun the evo heap and gain code execution in Android's mediacodec via 0-click audio transcription.

- Payout: Research
- Severity: high
- Program: Google
- Write-up by: Natalie Silvanovich (Project Zero)
- Disclosed: 2026-01-14
- CVE: CVE-2025-54957
- Write-up quality: 10/10
- Original: https://projectzero.google/2026/01/pixel-0-click-part-1.html
- Library page: https://bugbountylibrary.com/r/blog%3Aprojectzero-google-2026-01-pixel-0-click-part-1-html
- Tags: area:mobile domain:mobile domain:oss impact:rce kind:research platform:research sev:high tech:android technique:chained technique:source-review vuln:memory-corruption vuln:rce

**Target:** Dolby Digital Plus (EAC-3) audio decoder in libcodec2_soft_ddpdec.so
**Root cause:** evo_malloc's alignment-padding computation `total_size += (8 - total_size) % total_size` lacks an integer-overflow check, so a huge emdf_payload_size wraps to a small allocation while the copy loop still uses the original length as its bound.
**Steps:**
1. Craft a DD+ syncframe whose EMDF container sets emdf_payload_size via variable_bits to a value near 0xFFFFFFFFFFFFFFFF so total_size wraps to a small allocation.
2. Fill the evo heap with ~99 small EMDF payloads (19 bits each, 96 bytes allocated) so the overflowing allocation lands adjacent to the skip pointer at static buffer offset 0x61d28.
3. Use the buffer overrun to overwrite the skip pointer with a controllable absolute value, then write arbitrary data to it.
4. Chain syncframes with overlapping writes to fill up to 0xFFFF bytes of the dynamic buffer.
5. Point the skip pointer at the dynamic buffer's scudo 'curr chunk len' field and overwrite it (0x15000 -> 0x17000) so reallocation shifts the heap header, exposing writable space before it.
6. Guess the ASLR nibble (1/16), use the leak capability to copy an EMDF container over the skip pointer, and overwrite heap_len with 0x77007700770077.
7. Allocate ~0x28000 bytes of evo heap so the payload_array overlaps payload_extra and other static-buffer fields, then overwrite the function pointer at 0x8a410 to control PC.
8. Use WRITE STATIC (via overwritten payload_extra) to perform multiple non-contiguous writes and partially overwrite function pointers called by DLB_CLqmf_analysisL for ROP.
9. Map shellcode via WRITE DYNAMIC, fopen /proc/self/mem repeatedly to guess an fd, then pwrite shellcode over a function and execute it.
**How found:** Reviewing the DD+ spec, the researcher noticed variable_bits has no stated size limit for emdf_payload_size for emdf_payload_size; Ivan Fratric found the evo_malloc alignment-padding integer overflow while analyzing the Android UDC binary. Exploit development proceeded by mapping the static/dynamic buffer layout, discovering the skip pointer adjacent to the evo heap, and abusing scudo secondary-allocation header behavior.
**Exploitation:** A 0-click chain: audio attachments to an SMS/RCS message are auto-decoded by Google Messages transcription. Three crafted media files are decoded in sequence; the first two use WRITE DYNAMIC to shift the scudo heap header of the dynamic buffer, the third triggers the integer overflow to overwrite the skip pointer, heap_len and payload_extra, gaining arbitrary relative writes in the static buffer. Partial overwrite of function pointers in DLB_CLqmf_analysisL yields ROP; SELinux blocks dlopen and execmem, so shellcode is mapped via WRITE DYNAMIC and written into an executable function through /proc/self/mem using pwrite on a guessed fd from repeated fopen calls.
**Escalation:** Part 2 chains CVE-2025-36934 to escalate from mediacodec to kernel on the Pixel 9.
**Insight:** When a decoder uses a bump allocator with a single slab, look for the tracking pointer and length fields sitting just past the slab end — an overflow there converts a bounded overrun into a controllable pointer write. Also check scudo secondary-chunk headers: partially overwriting 'curr chunk len' or prev pointers shifts the header on reallocation, exposing writable space before the guard page.

