Skip to content
Memory corruption Write-up Advanced

On the clock: Escaping VMware Workstation at Pwn2Own Berlin 2025

A heap overflow existed in VMware Workstation's emulation of the PVSCSI controller: when a guest supplied more than 1024 scatter-gather entries, the code kept reallocating a fixed-size buffer and wrote entries past its end. An attacker with control of a guest VM could corrupt adjacent heap objects and, through careful heap shaping, build read/write/execute primitives to escape the virtual machine.

Webmaster Follow

Published on synacktiv.com

Rédigé par Thomas Bouzerar, Etienne Helluy-Lafont - 23/01/2026 - dans Exploit, Reverse-engineering - Téléchargement

Webmaster, on synacktiv.com

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 the reallocation size was hard-coded to 0x4000 bytes instead of doubling as the buffer grew, so entries beyond 1024 were written past the end of the heap buffer.

Impact

An attacker controlling a guest VM could corrupt host-side heap objects and ultimately obtain arbitrary read, write and code execution, escaping the virtual machine.

What the attacker needed

Control of a guest VM; guest uses the PVSCSI controller; host runs Windows 11 LFH

How it was found

  1. Send more than 512 scatter-gather entries from the guest so the controller switches to a dynamically allocated buffer.
  2. Send more than 1024 entries so each further entry is written 16 bytes past the end of the buffer.
  3. Spray shader objects to fill LFH buckets and shape the heap.
  4. Allocate URB objects as corruption targets and free chunks to set up the PING/PONG alternation.
  5. Trigger the overflow so the out-of-bounds write lands on an adjacent URB and zeroes its actual_len field.
  6. Reap URBs in FIFO order to identify the corrupted one and locate contiguous holes for further primitives.

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 virtual machine program (the hypervisor) has to pretend to be hardware for the guest system, including a disk controller. That pretend controller kept a list of memory chunks in a buffer that was too small, so extra list items spilled into neighbouring memory. Someone running code inside the guest could use that spill to tamper with the host-side program and break out of the VM.

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.

More by Webmaster

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.