Bug 1184431 (CVE-2015-0236)

Summary: CVE-2015-0236 libvirt: missing ACL check for the VIR_DOMAIN_XML_SECURE flag in save images and snapshots objects
Product: [Other] Security Response Reporter: Petr Matousek <pmatouse>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: aavati, berrange, eblake, jdenemar, jrusnack, nlevinki, pkrempa, rbalakri, rfortier, security-response-team, shaines, smohan, ssaha, vbellur
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
It was discovered that the virDomainSnapshotGetXMLDesc() and virDomainSaveImageGetXMLDesc() functions did not sufficiently limit the usage of the VIR_DOMAIN_XML_SECURE flag when fine-grained ACLs were enabled. A remote attacker able to establish a connection to libvirtd could use this flaw to obtain certain sensitive information from the domain XML file.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-19 22:28:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1184076, 1185769    
Bug Blocks: 1176178    

Description Petr Matousek 2015-01-21 11:24:22 UTC
The XML getters for for save images and snapshots objects don't check ACLs
for the VIR_DOMAIN_XML_SECURE flag and might possibly dump security sensitive
information.

A remote attacker able to establish a connection to libvirtd
could use this flaw to cause leak certain limited information from the
domain xml file.

Acknowledgements:

This issue was found by Luyao Huang of Red Hat.

Comment 1 Eric Blake 2015-01-22 22:22:06 UTC
Upstream security notice:
http://security.libvirt.org/2015/0001.html

Comment 2 Martin Prpič 2015-01-26 09:08:19 UTC
Created libvirt tracking bugs for this issue:

Affects: fedora-all [bug 1185769]

Comment 3 Martin Prpič 2015-01-26 09:09:40 UTC
External References:

http://security.libvirt.org/2015/0001.html

Comment 4 Fedora Update System 2015-02-15 03:06:55 UTC
libvirt-1.2.9.2-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2015-02-17 08:10:26 UTC
libvirt-1.1.3.9-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 errata-xmlrpc 2015-03-05 07:49:24 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2015:0323 https://rhn.redhat.com/errata/RHSA-2015-0323.html