Bug 1006509 (CVE-2013-4291)

Summary: CVE-2013-4291 libvirt: supplementary groups not adjusted correctly when parsing label
Product: [Other] Security Response Reporter: Petr Matousek <pmatouse>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: acathrow, berrange, bsarathy, clalancette, dallan, eblake, itamar, jdenemar, jforbes, jkurik, jsuchane, jyang, knoel, laine, libvirt-maint, pfrields, pkrempa, veillard, virt-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-10 18:10: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:
Bug Depends On: 964359, 1006511, 1006513    
Bug Blocks: 1006495    

Description Petr Matousek 2013-09-10 18:09:33 UTC
Upstream Commit 29fe5d7 (released in 1.1.1) introduced a latent problem for any caller of virSecurityManagerSetProcessLabel and where the domain already had a uid:gid label to be parsed.  Such a setup would collect the list of supplementary groups during virSecurityManagerPreFork, but then ignores that information, and thus fails to call setgroups() to adjust the supplementary groups of the process.

Introduced by:

Upstream fix:

Comment 1 Petr Matousek 2013-09-10 18:10:51 UTC

Not vulnerable.

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

Comment 2 Petr Matousek 2013-09-10 18:13:56 UTC
Created libvirt tracking bugs for this issue:

Affects: fedora-all [bug 1006511]

Comment 5 Fedora Update System 2013-10-01 02:14:43 UTC
libvirt- has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2013-10-02 06:40:52 UTC
libvirt- has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.