Bug 1590985 (CVE-2018-12891)

Summary: CVE-2018-12891 xen: preemption checks bypassed in x86 PV MM handling (XSA-264)
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ailan, drjones, imammedo, jforbes, knoel, m.a.young, mrezanin, pbonzini, rkrcmar, robinlee.sysu, security-response-team, vkuznets, xen-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-28 09:49:21 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: 1595959    
Bug Blocks: 1590987    

Description Laura Pardo 2018-06-13 20:48:35 UTC
ISSUE DESCRIPTION
=================

Certain PV MMU operations may take a long time to process. For that
reason Xen explicitly check for the need to preempt the current vCPU at
certain points. A few rarely taken code paths did bypass such checks.
By suitably enforcing the conditions through its own page table
contents, a malicious guest may cause such bypasses to be used for an
unbounded number of iterations.

IMPACT
======

A malicious or buggy PV guest may cause a Denial of Service (DoS)
affecting the entire host. Specifically, it may prevent use of a
physical CPU for an indeterminate period of time.

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

All Xen versions from 3.4 onwards are vulnerable. Xen versions 3.3 and
earlier are vulnerable to an even wider class of attacks, due to them
lacking preemption checks altogether in the affected code paths.

Only x86 systems are affected. ARM systems are not affected.

Only x86 PV guests can leverage the vulnerability. x86 HVM or PVH
guests cannot leverage the vulnerability.

MITIGATION
==========

Running only HVM or PVH guests will avoid this vulnerability.

For PV guests, the vulnerability can be avoided if the guest kernel is
controlled by the host rather than guest administrator, provided that
further steps are taken to prevent the guest administrator from loading
code into the kernel (e.g. by disabling loadable modules etc) or from
using other mechanisms which allow them to run code at kernel privilege.

Comment 1 Laura Pardo 2018-06-27 22:11:46 UTC
Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1595959]

Comment 2 Petr Matousek 2018-06-28 09:43:46 UTC
Acknowledgments:

Name: the Xen project
Upstream: Jan Beulich (SUSE)