mailing list archives
Xen Security Advisory 19 - guest administrator can access qemu monitor console
From: Xen.org security team <security () xen org>
Date: Thu, 06 Sep 2012 16:13:26 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Xen Security Advisory XSA-19
guest administrator can access qemu monitor console
A guest administrator who is granted access to the graphical console
of a Xen guest can access the qemu monitor. The monitor can be used
to access host resources.
A malicious guest administrator can access host resources (perhaps
belonging to other guests or the underlying system) and may be able to
escalate their privilege to that of the host.
Installations where guest administrators do not have access to a
domain's graphical console, or containing only PV domains configured
without a graphical console, are not vulnerable.
Installations where all guest administrators are trustworthy are not
vulnerable, even if the guest operating systems themselves are
Systems using xend/xm: At least all versions since Xen 4.0 are
affected. Systems are vulnerable even if "monitor=no" is specified in
the xm domain configuration file - this configuration option is not
properly honoured in the vulnerable versions.
Systems using libxl/xl: All versions are affected. The "monitor="
option is not understood, and is therefore ignored, by xl. However,
systems using the experimental device model version based on upstream
qemu are NOT vulnerable; that is, Xen 4.2 RC systems with
device_model_version="qemu_xen" specified in the xl domain config
Systems using libvirt are vulnerable. For "xen:" URIs, see xend/xm,
above. For "libxl:" URIs, all versions are affected.
Systems based on the Xen Cloud Platform are NOT vulnerable.
Connect to the guest's VNC (or SDL) graphical display and make sure
your focus is in that window. Hold down CTRL and ALT and press 2.
You will see a black screen showing one of "serial0", "parallel0" or
"QEMU <version> monitor". Repeat this exercise for other digits 3 to
6. CTRL+ALT+1 is the domain's normal graphical console. Not all
numbers will have screens attached, but note that you must release and
re-press CTRL and ALT each time.
If one of the accessible screens shows "QEMU <version> monitor" then
you are vulnerable. Otherwise you are not.
With xl in Xen 4.1 and later, supplying the following config
option in the VM configuration file will disable the monitor:
With xend the following config option will disable the monitor:
Note that with a vulnerable version of the software specifying
"monitor=0" will NOT disable the monitor.
We are not currently aware of the availability of mitigation for
systems using libvirt.
NOTE REGARDING EMBARGO
This issue was publicly discussed online by its discoverer.
There is therefore no embargo.
NOTE REGARDING CVE
This issue was previously reported in a different context, not to Xen
upstream, and assigned CVE-2007-0998 and fixed in a different way. We
have requested a new CVE for XSA-19 but it is not yet available.
The attached patch against qemu-xen-traditional
(qemu-xen-4.*-testing.git) resolves this issue.
$ sha256sum xsa19-qemu-all.patch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
-----END PGP SIGNATURE-----
- Xen Security Advisory 19 - guest administrator can access qemu monitor console Xen . org security team (Sep 06)