Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1377789 - (CVE-2016-7777, xsa190) CVE-2016-7777 xsa190 xen: CR0.TS and CR0.EM not always honored for x86 HVM guests (XSA-190)
CVE-2016-7777 xsa190 xen: CR0.TS and CR0.EM not always honored for x86 HVM gu...
Status: CLOSED WONTFIX
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20161004,repor...
: Security
Depends On: 1381576
Blocks:
  Show dependency treegraph
 
Reported: 2016-09-20 11:21 EDT by Adam Mariš
Modified: 2016-10-04 09:09 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-10-04 09:09:30 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
xen-unstable, Xen 4.7.x (4.05 KB, patch)
2016-09-20 11:23 EDT, Adam Mariš
no flags Details | Diff
Xen 4.6.x (3.94 KB, patch)
2016-09-20 11:24 EDT, Adam Mariš
no flags Details | Diff
Xen 4.5.x, Xen 4.4.x (3.94 KB, patch)
2016-09-20 11:24 EDT, Adam Mariš
no flags Details | Diff
xen-unstable, Xen 4.7.x (5.51 KB, patch)
2016-09-30 08:27 EDT, Adam Mariš
no flags Details | Diff
Xen 4.5.x, Xen 4.4.x (5.10 KB, patch)
2016-09-30 08:28 EDT, Adam Mariš
no flags Details | Diff
Xen 4.6 patch (5.10 KB, patch)
2016-09-30 08:29 EDT, Adam Mariš
no flags Details | Diff

  None (edit)
Description Adam Mariš 2016-09-20 11:21:47 EDT
ISSUE DESCRIPTION
=================

Instructions touching FPU, MMX, or XMM registers are required to raise
a Device Not Available Exception (#NM) when either CR0.EM or CR0.TS are
set.  (Their AVX or AVX-512 extensions would consider only CR0.TS.)
While during normal operation this is ensured by the hardware, if a
guest modifies instructions while the hypervisor is preparing to
emulate them, the #NM delivery could be missed.

Guest code in one task may thus (unintentionally or maliciously) read
or modify register state belonging to another task in the same VM.

IMPACT
======

A malicious unprivileged guest user may be able to obtain or corrupt
sensitive information (including cryptographic material) in other
programs in the same guest.

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

All versions of Xen expose the vulnerabilty to their x86 HVM guests.

In order to exploit the vulnerability, the attacker needs to be able to
trigger the Xen instruction emulator.

On Xen 4.7 the emulator can only be triggered: by user mode tasks which
have been given access to memory-mapped IO; in guests which have been
migrated between systems with CPUs from different vendors; or in guests
which have been configured with a CPU vendor different from the host's.

On Xen 4.6 and earlier, all HVM guests can trigger the emulator by
attempting to execute an invalid opcode, exposing the vulnerability.

The vulnerability is only exposed to x86 HVM guests.

The vulnerability is not exposed to x86 PV or ARM guests.

MITIGATION
==========

On Xen 4.7, not migrating across CPU vendors will avoid this
vulnerability.  (Unless the guest grants mmio access to unprivileged
tasks, or has been configured with a specific CPU vendor, eg using the
xl "cpuid" configuraton option.)

External References:

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

Acknowledgements:

Name: the Xen project
Comment 1 Adam Mariš 2016-09-20 11:23 EDT
Created attachment 1202945 [details]
xen-unstable, Xen 4.7.x
Comment 2 Adam Mariš 2016-09-20 11:24 EDT
Created attachment 1202946 [details]
Xen 4.6.x
Comment 3 Adam Mariš 2016-09-20 11:24 EDT
Created attachment 1202947 [details]
Xen 4.5.x, Xen 4.4.x
Comment 4 Adam Mariš 2016-09-30 08:27 EDT
Created attachment 1206248 [details]
xen-unstable, Xen 4.7.x
Comment 5 Adam Mariš 2016-09-30 08:28 EDT
Created attachment 1206249 [details]
Xen 4.5.x, Xen 4.4.x
Comment 6 Adam Mariš 2016-09-30 08:29 EDT
Created attachment 1206250 [details]
Xen 4.6 patch
Comment 7 Adam Mariš 2016-10-04 09:08:47 EDT
Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1381576]

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