(0Day) (Pwn2Own) Oracle VirtualBox IEM PGMPhysRead Out-Of-Bounds Write Local Privilege Escalation Vulnerability
The PGMPhysRead function in Oracle VirtualBox fails to properly validate user-supplied data, causing a write past the end of an allocated buffer. An attacker who can already run high-privileged code inside a guest system could use this to escalate privileges and execute code in the hypervisor context.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to escalate privileges on affected installations of Oracle VirtualBox. An attacker must first obtain the ability to execute high-privileged code on the target guest system in order to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing bounds check on user-supplied data in the PGMPhysRead function, allowing a write beyond the end of an allocated buffer.
Impact
An attacker with high-privileged code execution on the guest could escalate privileges and execute arbitrary code in the hypervisor context; the vendor fixed the issue in October 2022.
What the attacker needed
Ability to run high-privileged code in the guest
The fix
The vendor fixed the issue on 18 October 2022.
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 report has not been written yet. The Original tab links to the source.
VirtualBox is software that lets one computer run other operating systems inside it, and the hypervisor is the part that manages those virtual machines. This bug is a memory error: a routine that reads data from the guest's memory does not check how much data it is given, so it can write past the end of a buffer. Someone who already controls part of the guest could use that to break out and run code on the host side.
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.