Bug 1392935 (CVE-2016-9383, xsa195) - CVE-2016-9383 xsa195 xen: x86 64-bit bit test instruction emulation broken (XSA-195)
Summary: CVE-2016-9383 xsa195 xen: x86 64-bit bit test instruction emulation broken (X...
Alias: CVE-2016-9383, xsa195
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1397383
Blocks: 1392952
TreeView+ depends on / blocked
Reported: 2016-11-08 13:56 UTC by Adam Mariš
Modified: 2021-02-17 03:04 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-02-26 11:47:19 UTC

Attachments (Terms of Use)
xen-unstable, Xen 4.7.x, Xen 4.6.x, Xen 4.5.x, Xen 4.4.x (1.64 KB, patch)
2016-11-08 14:39 UTC, Adam Mariš
no flags Details | Diff

Description Adam Mariš 2016-11-08 13:56:20 UTC

The x86 instructions BT, BTC, BTR, and BTS, when used with a
destination memory operand and a source register rather than an
immediate operand, access a memory location offset from that specified
by the memory operand as specified by the high bits of the register

When Xen needs to emulate such an instruction, to efficiently handle
the emulation, the memory address and register operand are
recalculated internally to Xen.  In this process, the high bits of an
intermediate expression were discarded, leading to both the memory
location and the register operand being wrong.

The wrong memory location would have only a guest local effect (either
access to an unintended location, or a fault delivered to the guest),
whereas the wrong register value could lead to either a host crash or
an unintended host memory access.


A malicious guest can modify arbitrary memory, allowing for arbitrary
code execution (and therefore privilege escalation affecting the whole
host), a crash of the host (leading to a DoS), or information leaks.

The vulnerability is sometimes exploitable by unprivileged guest user


All Xen versions are affected.

The vulnerability is only exposed to x86 guests running in 64-bit mode.

On Xen 4.6 and earlier the vulnerability is exposed to all guest user
processes, including unprivileged processes, in such guests.

On Xen 4.7 and later, the vulnerability is exposed only to guest user
processes granted a degree of privilege (such as direct hardware
access) by the guest administrator; or, to all user processes when the
when the VM has been explicitly configured with a non-default cpu
vendor string (in xm/xl, this would be done with a `cpuid=' domain
config option).

The vulnerability is not exposed to 32-bit PV guests.

ARM systems are not vulnerable.


There is no known mitigation.

External References:



Name: the Xen project
Upstream: George Dunlap (Citrix)

Comment 1 Adam Mariš 2016-11-08 14:39:45 UTC
Created attachment 1218535 [details]
xen-unstable, Xen 4.7.x, Xen 4.6.x, Xen 4.5.x, Xen 4.4.x

Comment 2 Martin Prpič 2016-11-22 12:26:16 UTC
Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1397383]

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