Bug 1012561 (CVE-2013-4370)

Summary: CVE-2013-4370 xen: misplaced free in ocaml xc_vcpu_getaffinity stub (XSA-69)
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
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:11:42 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:08:42 UTC
The ocaml binding for the xc_vcpu_getaffinity function incorrectly
frees a pointer before using it and subsequently freeing it again
afterwards. The code therefore contains a use-after-free and
double-free flaws.

An attacker may be able to cause a multithreaded toolstack written in
ocaml and 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:11:42 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 ocaml 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:52:58 UTC
External References:

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

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

Affects: fedora-all [bug 1017843]