CVE-2017-12137: High severity XEN Xen vulnerability
arch/x86/mm.c in Xen allows local PV guest OS users to gain host OS privileges via vectors related to mapgrantref.
Other sources
ISSUE DESCRIPTION =================
When mapping a grant reference, a guest must inform Xen of where it would like the grant mapped. For PV guests, this is done by nominating an existing linear address, or an L1 pagetable entry, to be altered.
Neither of these PV paths check for alignment of the passed parameter. The linear address path suitably truncates the linear address when calculating the L1 entry to use, but the path which uses a directly nominated L1 entry performs no checks.
This causes Xen to make an incorrectly-aligned update to a pagetable, which corrupts both the intended entry and the subsequent entry with values which are largely guest controlled. If the misaligned value crosses a page boundary, then an arbitrary other heap page is corrupted.
IMPACT ======
A PV guest can elevate its privilege to that of the host.
VULNERABLE SYSTEMS ==================
All versions of Xen are vulnerable.
Only x86 systems are vulnerable.
Any system running untrusted PV guests is vulnerable.
The vulnerability is exposed to PV stub qemu serving as the device model for HVM guests. Our default assumption is that an HVM guest has compromised its PV stub qemu. By extension, it is likely that the vulnerability is exposed to HVM guests which are served by a PV stub qemu.
MITIGATION ==========
Running only HVM guests, served by a dom0-based qemu, will avoid this vulnerability.
External References:
http://xenbits.xen.org/xsa/advisory-227.html
Affected Software
Remediation
Patch Available
Patch Available
Patch Available
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2017-12137?
CVE-2017-12137 has a severity rating that indicates a potential for privilege escalation in local PV guest OS users.
How do I fix CVE-2017-12137?
To mitigate CVE-2017-12137, it is recommended to apply the latest patches or updates provided by Xen or Citrix for the affected versions.
Which software is affected by CVE-2017-12137?
CVE-2017-12137 affects various versions of Xen and Citrix XenServer, including specific Debian releases.
Can CVE-2017-12137 be exploited remotely?
CVE-2017-12137 cannot be exploited remotely as it requires local access to a vulnerable PV guest OS.
What versions of XenServer are impacted by CVE-2017-12137?
CVE-2017-12137 impacts XenServer versions 6.0.2, 6.2.0, 6.5, 7.0, 7.1, and 7.2.