Bug 1486707 (CVE-2017-14316, xsa231) - CVE-2017-14316 xsa231 xen: Missing NUMA node parameter verification (XSA-231)
Summary: CVE-2017-14316 xsa231 xen: Missing NUMA node parameter verification (XSA-231)
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2017-14316, xsa231
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1490884
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-08-30 11:55 UTC by Adam Mariš
Modified: 2021-02-17 01:39 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-08 03:22:45 UTC
Embargoed:


Attachments (Terms of Use)

Description Adam Mariš 2017-08-30 11:55:41 UTC
ISSUE DESCRIPTION
=================

The function `alloc_heap_pages` allows callers to specify the first
NUMA node that should be used for allocations through the `memflags`
parameter; the node is extracted using the `MEMF_get_node` macro.

While the function checks to see if the special constant
`NUMA_NO_NODE` is specified, it otherwise does not handle the case
where `node >= MAX_NUMNODES`.  This allows an out-of-bounds access
to an internal array.

IMPACT
======

An attacker using crafted hypercalls can execute arbitrary code within
Xen.

VULNERABLE SYSTEMS
==================

All versions of Xen are affected.

Both ARM and x86 are affected.

Both systems running HVM guests and system running PV guests are
affected.

MITIGATION
==========

No known mitigation.

External References:

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

Comment 1 Adam Mariš 2017-09-12 12:22:08 UTC
Acknowledgments:

Name: Matthew Daley

Comment 2 Adam Mariš 2017-09-12 12:23:53 UTC
Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1490884]


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