(Pwn2Own) Oracle VirtualBox SLiRP Networking Heap-based Overflow Privilege Escalation Vulnerability
A heap-based buffer overflow in VirtualBox's SLiRP networking code occurs when parsing ICMP messages, because guest-supplied data is not properly validated. An attacker with high-privileged code in the guest can write past the end of an allocated buffer and execute arbitrary code in the hypervisor context.
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, the SLiRP networking component fails to validate the length or contents of guest-supplied ICMP data before copying it into a heap buffer, leading to an out-of-bounds write.
Impact
An attacker who can execute high-privileged code in the guest could escalate privileges and execute arbitrary code in the context of the hypervisor, potentially compromising the host.
What the attacker needed
High-privileged code execution in the guest
The fix
Oracle issued an update to correct this vulnerability.
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 runs a virtual network for each guest, and part of that network code handles ICMP messages (the messages used by tools like ping). The guest can send crafted ICMP data that the host-side network code does not check properly, causing it to write beyond a reserved memory area. Because that code runs with high privileges on the host, an attacker who already controls the guest at a high privilege level can use this to run code on the host itself.
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.