Bug 1012561 - (CVE-2013-4370) CVE-2013-4370 xen: misplaced free in ocaml xc_vcpu_getaffinity stub (XSA-69)
CVE-2013-4370 xen: misplaced free in ocaml xc_vcpu_getaffinity stub (XSA-69)
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
: Security
Depends On: 1017843
Blocks: 1012558
  Show dependency treegraph
Reported: 2013-09-26 12:08 EDT by Vincent Danen
Modified: 2013-10-10 11:54 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-09-26 12:11:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Vincent Danen 2013-09-26 12:08:42 EDT
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


Red Hat would like to thank the Xen project for reporting this issue.
Comment 1 Vincent Danen 2013-09-26 12:11:42 EDT

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 11:52:58 EDT
External References:

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

Affects: fedora-all [bug 1017843]

Note You need to log in before you can comment on or make changes to this bug.