Bug 1064490 (CVE-2014-1950)

Summary: CVE-2014-1950 xen: use-after-free in xc_cpupool_getinfo() under memory pressure (XSA-88)
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: drjones, imammedo, jforbes, jkurik, kraxel, m.a.young, mrezanin, pbonzini, rkrcmar, virt-maint, xen-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-02-12 17:23:50 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: 1064491    
Bug Blocks:    

Description Vincent Danen 2014-02-12 17:21:32 UTC
A flaw was reported [1] in Xen version 4.1 and later:


If xc_cpumap_alloc() fails then xc_cpupool_getinfo() will free and incorrectly
return the then-free pointer to the result structure.

An attacker may be able to cause a multi-threaded toolstack using this
function to race against itself leading to heap corruption and a
potential DoS.

Depending on the malloc implementation, privilege escalation cannot be
ruled out.

The flaw is present in Xen 4.1 onwards.  Only multithreaded toolstacks
are vulnerable.  Only systems where management functions (such as
domain creation) are exposed to untrusted users are vulnerable.

xl is not multithreaded, so is not vulnerable.  However, multithreaded
toolstacks using libxl as a library are vulnerable.  xend is
vulnerable.


[1] http://xenbits.xenproject.org/xsa/advisory-88.html


Acknowledgements:

Red Hat would like to thank the Xen project for reporting this issue.

Comment 1 Vincent Danen 2014-02-12 17:22:53 UTC
Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1064491]

Comment 2 Vincent Danen 2014-02-12 17:23:50 UTC
Statement:

Not vulnerable. This issue did not affect the versions of the kernel-xen package as shipped with Red Hat Enterprise Linux 5.

This issue did not affect Red Hat Enterprise Linux 6 and Red Hat Enterprise MRG 2 as we did not have support for Xen hypervisor.