Skip to content
Memory corruption Advisory Advanced CVE-2022-39422

(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.

Billy Jheng Bing Jhong Follow

Originally disclosed on Zero Day Initiative

High 7.5 View original

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.

Billy Jheng Bing-Jhong (@st424204), Muhammad Alifa Ramdhan (@n0psledbyte), Nguyen Hoang Thạch (@hi_im_d4rkn3ss) of STAR Labs, on the Zero Day Initiative

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.

More by Billy Jheng Bing Jhong

View all

1 more disclosed report, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

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.