QEMU Plan 9 File System Time-Of-Check Time-Of-Use Privilege Escalation Vulnerability
A time-of-check time-of-use flaw in QEMU's Plan 9 file system handling of file descriptor maps allows a local attacker with high privileges in the guest to execute code in the hypervisor context. The lack of proper locking enables privilege escalation.
Originally disclosed on Zero Day Initiative
This vulnerability allows local attackers to execute arbitrary code on affected installations of QEMU. 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
Impact
An attacker with high privileges in the guest could escalate to execute code in the hypervisor context.
What the attacker needed
High-privileged code execution in guest
The fix
QEMU 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.
This is a race condition in QEMU, the software that runs virtual machines. When two parts of the program access the same data without proper locking, an attacker who already has high privileges inside the virtual machine can trick QEMU into running their code on the host, escaping the virtual machine.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.