Oracle VirtualBox VHWA Use-After-Free Privilege Escalation Vulnerability
A use-after-free vulnerability was found in VirtualBox's VHWA component, which an attacker could exploit to escape the virtual machine and execute code on the host.
starlabs.sg
Published on starlabs.sg
As part of my month-long internship at STAR Labs, I was introduced to VirtualBox and learnt much about bug hunting and triaging, root-cause analysis and exploitation. This post will detail a use-after-free bug I found during the duration of the internship, and specifics on the VM escape exploit that I wrote utilising…
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 use-after-free in the VHWA component where memory is freed but later accessed without being cleared.
Impact
An attacker could escape the virtual machine and execute code on the host, potentially compromising the entire system.
What the attacker needed
Ability to run code in a guest VM
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 use-after-free is a bug where a program frees memory but then keeps using it, letting an attacker control what happens next. In VirtualBox, this flaw could let someone inside a virtual machine break out and run code on the real computer, which is called a VM escape.
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.