Bug 1160817 (CVE-2014-7823)

Summary: CVE-2014-7823 libvirt: dumpxml: information leak with migratable flag
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: agedosier, berrange, carnil, chrisw, clalancette, eblake, itamar, jdenemar, jforbes, laine, libvirt-maint, nlevinki, pkrempa, rfortier, rhs-bugs, veillard, virt-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
It was found that when the VIR_DOMAIN_XML_MIGRATABLE flag was used, the QEMU driver implementation of the virDomainGetXMLDesc() function could bypass the restrictions of the VIR_DOMAIN_XML_SECURE flag. A remote attacker able to establish a read-only connection to libvirtd could use this flaw to leak certain limited information from the domain XML data.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-20 10:48:00 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: 1160819, 1160820, 1160821, 1160822, 1171739    
Bug Blocks: 1160286, 1160828, 1172193    

Description Petr Matousek 2014-11-05 17:29:45 UTC
In at least the qemu implementation of virDomainGetXMLDesc, the use
of the flag VIR_DOMAIN_XML_MIGRATABLE (which is usable from a
read-only connection) triggers the implicit use of
VIR_DOMAIN_XML_SECURE prior to calling qemuDomainFormatXML.
However, the use of VIR_DOMAIN_XML_SECURE is supposed to be restricted
to read-write clients only.  

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

Reference:
https://www.redhat.com/archives/libvir-list/2014-November/msg00114.html

Comment 1 Petr Matousek 2014-11-05 17:30:46 UTC
Statement:

This issue does not affect the versions of libvirt packages as shipped with
Red Hat Enterprise Linux 5.

This issue does affect the versions of libvirt packages as shipped with Red Hat
Enterprise Linux 6 and 7. Future updates may address this issue in the
respective Red Hat Enterprise Linux releases.

Comment 3 Petr Matousek 2014-11-05 17:31:54 UTC
Created libvirt tracking bugs for this issue:

Affects: fedora-all [bug 1160822]

Comment 4 errata-xmlrpc 2014-11-18 18:09:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2014:1873 https://rhn.redhat.com/errata/RHSA-2014-1873.html

Comment 5 Fedora Update System 2014-11-22 12:37:17 UTC
libvirt-1.1.3.8-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 Murray McAllister 2014-11-24 07:25:07 UTC
Acknowledgements:

This issue was discovered by Eric Blake of Red Hat.

Comment 10 errata-xmlrpc 2015-01-05 20:30:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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