Xen Security Advisory: Information leak via crafted user-supplied CDROM
When a CDROM image was inserted live via QMP without specifying the disk format, QEMU guessed the format from the image content. An attacker could craft a raw image that looked like a snapshot format pointing to an arbitrary file, allowing the QEMU process to read any file on the dom0 filesystem.
xenbits.xen.org
Published on xenbits.xen.org
CVE(s) | CVE-2018-10472 |
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
Likely the disk format was not explicitly specified when inserting a CDROM live via QMP, so QEMU auto-detected the format from attacker-controlled content and followed a backing file reference.
Impact
An attacker could read any file or device node on the dom0 filesystem with the permissions of the QEMU process; the virtual CDROM is read-only so no data could be written.
What the attacker needed
X86 HVM guest with virtual CDROM; qemu running in dom0 (not stub domain); qemu-xen (not qemu-xen-traditional); attacker can supply raw CDROM image
The fix
The issue was fixed by applying the attached patches, which presumably ensure the format is specified when inserting a CDROM live.
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.
A virtual machine can be given a CD-ROM image file. If the software does not know what kind of image it is, it tries to guess by reading the file. An attacker can make a file that tricks the software into reading a different file on the host computer, which the attacker should not be able to see.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.