Bug 1012582 (CVE-2013-4371)

Summary: CVE-2013-4371 xen: use-after-free in libxl_list_cpupool under memory pressure (XSA-70)
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, mrezanin, pbonzini, pmatouse, 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: 2013-09-26 16:39:09 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: 1017843    
Bug Blocks: 1012558    

Description Vincent Danen 2013-09-26 16:38:35 UTC
If realloc(3) fails then libxl_list_cpupool will incorrectly return
the now-free original pointer.

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

Depending on the malloc implementation code execution cannot be ruled
out.


Acknowledgements:

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

Comment 1 Vincent Danen 2013-09-26 16:39:09 UTC
Statement:

Not vulnerable.

This issue does not affect the versions of the xen package as shipped with Red Hat Enterprise Linux 5 as it does not provide support for the libxl toolstack.

This issue does not affect Red Hat Enterprise Linux 6 and Red Hat Enterprise MRG 2.

Comment 2 Vincent Danen 2013-10-10 15:40:19 UTC
External References:

http://xenbits.xen.org/xsa/advisory-70.html

Comment 3 Vincent Danen 2013-10-10 15:41:58 UTC
Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1017843]