Xen Qemu Guest Agent Insecure File Permissions Lets Local Users Gain Elevated Privileges
SecurityTracker Alert ID: 1028521|
SecurityTracker URL: http://securitytracker.com/id/1028521
(Links to External Site)
Date: May 7 2013
User access via local system|
Fix Available: Yes Vendor Confirmed: Yes |
A vulnerability was reported in Xen. A local guest user can obtain elevated privileges on the target guest system.|
The qemu guest agent (qga) creates files with insecure permissions (e.g., world writable) when started in daemon mode. A local user on the guest system may be able to obtain elevated privileges on the guest system.
A local user on the guest operating system can obtain elevated privileges on the target guest system.|
No solution was available at the time of this entry.|
As a workaround, the guest aqent can be disabled.
[Editor's note: An upstream patch is available for qemu.]
Vendor URL: xen.org/ (Links to External Site)
Access control error|
|Underlying OS: Linux (Any)|
This archive entry has one or more follow-up message(s) listed below.|
Source Message Contents
Subject: [oss-security] Xen Security Advisory 51 (CVE-2013-2007) - qemu guest agent (qga) insecure file permissions|
Content-Type: text/plain; charset="utf-8"
-----BEGIN PGP SIGNED MESSAGE-----
Xen Security Advisory CVE-2013-2007 / XSA-51
qemu guest agent (qga) insecure file permissions
UPDATES IN VERSION 2
The qemu guest agent creates files with insecure permissions when
started in daemon mode.
The qemu guest agent is not used by default in Xen systems.
If it is used in a particular guest, unprivileged guest processes
might be able to escalate their privilege to that of the guest.
We are not aware of any Xen installations using the qemu guest agent.
However, the program is built and installed (as the executable
`qemu-ga') as part of the Xen management tools by the Xen build
system. It is possible that a system administrator, or downstream
system integrator, might have arranged to execute qemu-ga.
If you have not taken steps to run qemu-ga, you are not vulnerable.
Disabling the guest agent will eliminate the vulnerability.
Patches to resolve this problem are available from the upstream qemu
project via the usual channels. The Xen Project Security Team do not
intend to provide or distribute patches for this vulnerability.
At the time of writing the information we have about this
vulnerability is as follows:
Subject: [PATCH] qga: set umask 0077 when daemonizing (CVE-2013-2007)
The qemu guest agent creates a bunch of files with insecure permissions
when started in daemon mode. For example:
-rw-rw-rw- 1 root root /var/log/qemu-ga.log
-rw-rw-rw- 1 root root /var/run/qga.state
-rw-rw-rw- 1 root root /var/log/qga-fsfreeze-hook.log
In addition, at least all files created with the "guest-file-open" QMP
command, and all files created with shell output redirection (or
otherwise) by utilities invoked by the fsfreeze hook script are affected.
For authoritative further information, and patches, please refer to
the information provided by the qemu upstream project.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
-----END PGP SIGNATURE-----