Bug 1145667 (CVE-2014-3657)

Summary: CVE-2014-3657 libvirt: domain_conf: domain deadlock DoS
Product: [Other] Security Response Reporter: Petr Matousek <pmatouse>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aavati, ajia, berrange, chazlett, dyuan, eblake, hannsj_uhl, jdenemar, mzhan, nlevinki, phrdina, pkrempa, rbalakri, rfortier, security-response-team, shaines, sisharma, smohan, ssaha, vbellur, virt-bugs
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
A denial of service flaw was found in the way libvirt's virConnectListAllDomains() function computed the number of used domains. A remote attacker able to establish a read-only connection to libvirtd could use this flaw to make any domain operations within libvirt unresponsive.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-18 21:49:51 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: 1145669, 1145670, 1145671, 1160277, 1160824    
Bug Blocks: 1143903, 1145679, 1160286    

Description Petr Matousek 2014-09-23 13:17:07 UTC
If public api virConnectListAllDomains() with second parameter
set to NULL to get only the number of domains is used, it will
lock out all other operations with domains.

A remote attacker able to establish a read-only connection to
libvirtd could use this flaw to cause libvirtd denial of
service.

Introduced by:
http://libvirt.org/git/?p=libvirt.git;a=commit;h=2c680804

Comment 2 Petr Matousek 2014-09-23 13:30:21 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 Martin Prpič 2014-09-30 15:37:52 UTC
IssueDescription:

A denial of service flaw was found in the way libvirt's virConnectListAllDomains() function computed the number of used domains. A remote attacker able to establish a read-only connection to libvirtd could use this flaw to make any domain operations within libvirt unresponsive.

Comment 5 errata-xmlrpc 2014-10-01 19:11:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

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

Comment 7 Petr Matousek 2014-11-05 17:33:08 UTC
Created libvirt tracking bugs for this issue:

Affects: fedora-all [bug 1160824]

Comment 8 errata-xmlrpc 2014-11-18 18:09:14 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 9 Fedora Update System 2014-11-22 12:37:14 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.