Chaining N-days to Compromise All: Part 4 — VMware Workstation Information leakage
A guest could read uninitialised heap memory from the VMware host process by sending a crafted USB request to the virtual Bluetooth device. This leaked sensitive data such as the base address of the host process, which could be used in further exploitation.
blog.theori.io
Published on blog.theori.io
Vulnerability Research
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
The virtual Bluetooth device allocated a buffer for USB request data but did not initialise it, and a validation check allowed the uninitialised buffer to be returned to the guest.
Impact
An attacker with control of a guest virtual machine could read uninitialised host memory, potentially leaking sensitive information such as the base address of the host process, which could aid further attacks.
What the attacker needed
Guest access to a virtual Bluetooth device; ability to send USB requests from the guest
The fix
The vulnerability was fixed by initialising the URB data buffer to zero after allocation in VMware Workstation 17.5.1 and ESXi 8.0U2sb-23305545.
How it was found
- Open the virtual Bluetooth device from the guest.
- Send a control request with the class request type and the IN direction, using a large length value.
- Read the returned buffer, which contains uninitialised host heap memory.
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.
When a program allocates memory, it sometimes does not clear it first, so old data from other programs can remain. Here, a virtual machine could ask a virtual Bluetooth device for data and receive that leftover memory from the host, which might contain secrets like memory addresses. This is called an information leak.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.