Bug 1077620 (CVE-2013-7336)

Summary: CVE-2013-7336 libvirt: unprivileged user can crash libvirtd during spice migration
Product: [Other] Security Response Reporter: Petr Matousek <pmatouse>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acathrow, berrange, bsarathy, clalancette, eblake, itamar, jforbes, jkurik, jyang, laine, libvirt-maint, pfrields, veillard, virt-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-18 10:34:47 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: 1009886, 1010861    
Bug Blocks: 1077674    

Description Petr Matousek 2014-03-18 10:32:55 UTC
Description of the problem:

Domblkstat is possible even with read-only connection, so whenever
migration with spice is done and domblkstat gets called at the same time
as qemuMonitorGetSpiceMigrationStatus(), there is certain possibility that
the daemon crashes.

An unprivileged user able to issue commands to running libvirtd could use
this flaw to crash libvirtd and prevent more privileged clients from
working correctly.

Upstream fix:
http://libvirt.org/git/?p=libvirt.git;a=commit;h=484cc321

Acknowledgements:

This issue was discovered by Marian Krcmarik of Red Hat.

Comment 1 Petr Matousek 2014-03-18 10:34:47 UTC
Statement:

Not vulnerable.

This issue did not affect the versions of libvirt package as shipped with Red Hat Enterprise Linux 5 and 6 (since http://rhn.redhat.com/errata/RHBA-2013-1581.html, Red Hat Enterprise Linux 6.5 GA).

Comment 2 Eric Blake 2014-03-19 20:04:06 UTC
(In reply to Petr Matousek from comment #1)
> Statement:
> 
> Not vulnerable.
> 
> This issue did not affect the versions of libvirt package as shipped with
> Red Hat Enterprise Linux 5 and 6.

It turns out that I missed that the vulnerability had been backported to RHEL 6 as a result of bug 920205 (libvirt-0.10.2-20.el6); it was fixed for libvirt-0.10.2-27.el6.

Comment 3 Petr Matousek 2014-03-24 09:00:58 UTC
(In reply to Eric Blake from comment #2)
> It turns out that I missed that the vulnerability had been backported to
> RHEL 6 as a result of bug 920205 (libvirt-0.10.2-20.el6); it was fixed for
> libvirt-0.10.2-27.el6.

Thanks, Eric. I've adjusted the statement.