Bug 1048637 (CVE-2014-0028)

Summary: CVE-2014-0028 libvirt: event registration bypasses domain:getattr ACL
Product: [Other] Security Response Reporter: Murray McAllister <mmcallis>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: eblake, pfrields, pmatouse, rbalakri, security-response-team
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: 2015-01-21 15:36:18 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: 1047964, 1054203    
Bug Blocks: 1048642    

Description Murray McAllister 2014-01-06 01:26:00 UTC
Eric Blake from Red Hat reports that ever since libvirt 1.1.1 added ACL domain:getattr filtering for commands like virConnectListAllDomains, we have had a latent problem that the use of virConnectDomainEventRegister() and virConnectDomainEventRegisterAny() can be used to learn about virDomainPtr objects that should have been inaccessible to the user. It is not a problem if you are not using ACLs; also, it is partially mitigated by the fact that any domain that does not trigger an event in the timeframe where the attacker maintains their event callback will not be leaked.

Once an attacker has learned about a domain by bypassing domain:getattr, they could perform other actions on the domain if there were not ACLs to filter those actions too, such as starting and stopping the domain.

Comment 1 Murray McAllister 2014-01-07 02:26:45 UTC
Acknowledgements:

This issue was discovered by Eric Blake of the Red Hat libvirt team.

Comment 2 Petr Matousek 2014-01-16 12:51:11 UTC
Statement:

Not vulnerable.

This issue did not affect the libvirt packages as shipped with Red Hat Enterprise Linux 5 and 6.

Comment 3 Petr Matousek 2014-01-16 12:52:29 UTC
Upstream patch:

  https://www.redhat.com/archives/libvir-list/2014-January/msg00684.html

Comment 4 Petr Matousek 2014-01-16 12:53:47 UTC
Created libvirt tracking bugs for this issue:

Affects: fedora-20 [bug 1054203]