# A 0-click exploit chain for the Pixel 10: When a Door Closes, a Window Opens

Pixel 10 VPU driver's mmap remaps physical memory unbounded past the MMIO register region, letting userspace map and overwrite the kernel image for root.

- Payout: Research
- Severity: high
- Program: Pixel 10 VPU driver
- Write-up by: Seth Jenkins
- Disclosed: 2026-05-13
- Write-up quality: 8/10
- Original: https://projectzero.google/2026/05/pixel-10-exploit.html
- Library page: https://bugbountylibrary.com/r/blog%3Aprojectzero-google-2026-05-pixel-10-exploit-html
- Tags: area:mobile domain:mobile domain:oss impact:privesc impact:rce kind:research platform:research sev:high tech:android tech:linux technique:chained technique:source-review vuln:memory-corruption vuln:privilege-escalation

**Target:** /dev/vpu driver (Chips&Media Wave677DV) mmap handler
**Root cause:** vpu_mmap calls remap_pfn_range with length derived from the VMA size, not bounded to the VPU register region size, so a larger mmap maps arbitrary physical memory above the register base.
**Steps:**
1. Open `/dev/vpu` (accessible in mediacodec SELinux context).
2. Call `mmap` with a length larger than the VPU register region, starting at `core->paddr >> PAGE_SHIFT`.
3. The kernel image (.text/.data) sits at a higher physical address than the VPU region and is now mapped into userspace.
4. Kernel physical address is fixed on Pixel, so compute kernel location as a known offset from the returned mmap address.
5. Overwrite a kernel function (e.g. via the mapped .text) to gain kernel code execution / arbitrary read-write.
**How found:** Noticed new /dev/vpu driver in mediacodec SELinux context absent BigWave; 2-hour audit with Jann Horn of the driver's mmap handler revealed remap_pfn_range unbounded by register region size.
**Exploitation:** Chain: 0-click Dolby UDC exploit (CVE-2025-54957, updated offsets, overwrite dap_cpdp_init instead of __stack_chk_fail due to RET PAC) gains mediacodec context; then mmap /dev/vpu oversized to map kernel physical memory and overwrite kernel code for root. Full exploit written in under a day; ~5 lines for arbitrary kernel R/W.
**Escalation:** Chained 0-click remote Dolby decoder bug to mediacodec, then VPU mmap bug to kernel code execution/root.
**Insight:** When a driver exposes hardware MMIO to userspace via mmap, check that remap_pfn_range length is clamped to the register region size; an oversized VMA maps adjacent physical memory, and fixed kernel physical addresses make kernel overwrite trivial.

## Proof of concept (copied exactly from the original report)

**VPU mmap handler remapping unbounded physical memory**

```
static int vpu_mmap(struct file *fp, struct vm_area_struct *vm)
{
 unsigned long pfn;
 struct vpu_core *core =
 container_of(fp->f_inode->i_cdev, struct vpu_core, cdev);

 vm_flags_set(vm, VM_IO | VM_DONTEXPAND | VM_DONTDUMP);
 /* This is a CSRs mapping, use pgprot_device */
 vm->vm_page_prot = pgprot_device(vm->vm_page_prot);
 pfn = core->paddr >> PAGE_SHIFT;

 return remap_pfn_range(vm, vm->vm_start, pfn, vm->vm_end-vm->vm_start, vm->vm_page_prot) ? -EAGAIN : 0;
```

