Bug 1499815 (CVE-2017-15597, xsa236)

Summary: CVE-2017-15597 xsa236 xen: pin count / page reference race in grant table code (XSA-236)
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
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: 2019-06-08 03:27:01 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: 1506693    
Bug Blocks:    

Description Adam Mariš 2017-10-09 12:51:06 UTC
ISSUE DESCRIPTION
=================

Grant copying code made an implication that any grant pin would be
accompanied by a suitable page reference.  Other portions of code,
however, did not match up with that assumption.  When such a grant
copy operation is being done on a grant of a dying domain, the
assumption turns out wrong.

IMPACT
======

A malicious guest administrator can cause can cause hypervisor memory
corruption, most likely resulting in host crash and a Denial of
Service.  Privilege escalation and information leaks cannot be ruled
out.

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

Xen versions from 4.2 onwards are vulnerable.  Xen versions 4.1 and
earlier are not vulnerable.

Both x86 and ARM are vulnerable, and on x86 both PV and HVM guests can
trigger the vulnerability.

MITIGATION
==========

Running only guests without para-virtual drivers, and known not to
issue grant table operations can avoid the vulnerability.

External References:

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

Comment 1 Andrej Nemec 2017-10-26 15:02:06 UTC
Public via:

http://seclists.org/oss-sec/2017/q4/131

Comment 2 Andrej Nemec 2017-10-26 15:02:18 UTC
Acknowledgments:

Name: the Xen project
Upstream: Pawel Wieczorkiewicz (Amazon)

Comment 3 Andrej Nemec 2017-10-26 15:03:12 UTC
Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1506693]