Bug 1271971 (CVE-2015-7835, xsa148)

Summary: CVE-2015-7835 xen: Uncontrolled creation of large page mappings by PV guests on x86
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: ailan, drjones, imammedo, knoel, mrezanin, pbonzini, rkrcmar, security-response-team, vkuznets, xen-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-07 09:52:40 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: 1276344    
Bug Blocks: 1271637    
Attachments:
Description Flags
xen-unstable, Xen 4.6.x
none
Xen 4.5.x
none
Xen 4.4.x, Xen 4.3.x none

Description Adam Mariš 2015-10-15 08:07:05 UTC
A vulnerability in xen allowing malicious PV guest administrators to escalate privilege, so as to control the whole system, was found.

The code to validate level 2 page table entries is bypassed when certain conditions are satisfied. This means that a PV guest can create writeable mappings using super page mappings. Such writeable mappings can violate Xen intended invariants for pages which Xen is supposed to keep read-only. This is possible even if the "allowsuperpage" command line option is not used.

Xen 3.4 and onward on x86 (both 32 and 64 bit) systems are vulnerable. Only PV guests can exploit the vulnerability.

Mitigation:

Running only HVM guests will avoid this vulnerability. On systems where the guest kernel is controlled by the host rather than guest administrator, running only kernels which do not call these hypercalls will also prevent untrusted guest users from exploiting this issue. However untrusted guest administrators can still trigger it unless further steps are taken to prevent them 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 Adam Mariš 2015-10-15 08:09:27 UTC
Created attachment 1083160 [details]
xen-unstable, Xen 4.6.x

Comment 2 Adam Mariš 2015-10-15 08:10:04 UTC
Created attachment 1083161 [details]
Xen 4.5.x

Comment 3 Adam Mariš 2015-10-15 08:10:42 UTC
Created attachment 1083162 [details]
Xen 4.4.x, Xen 4.3.x

Comment 4 Martin Prpič 2015-10-29 13:42:24 UTC
External References:

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

Comment 5 Martin Prpič 2015-10-29 13:51:41 UTC
Created xen tracking bugs for this issue:

Affects: fedora-all [bug 1276344]

Comment 6 Fedora Update System 2015-11-08 22:21:09 UTC
xen-4.5.1-14.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2015-11-10 00:22:24 UTC
xen-4.5.1-14.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2015-11-10 00:50:32 UTC
xen-4.4.3-7.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.