xen: non-atomic modification of live EPT PTE leads to DoS (XSA-328)
Published Jul 7, 2020
7.8
HIGHCVSS 3.1
EPSS 0.28%
Description
An issue was discovered in Xen through 4.13.x, allowing Intel guest OS users to gain privileges or cause a denial of service because of non-atomic modification of a live EPT PTE. When mapping guest EPT (nested paging) tables, Xen would in some circumstances use a series of non-atomic bitfield writes. Depending on the compiler version and optimisation flags, Xen might expose a dangerous partially written PTE to the hardware, which an attacker might be able to race to exploit. A guest administrator or perhaps even an unprivileged guest user might be able to cause denial of service, data corruption, or privilege escalation. Only systems using Intel CPUs are vulnerable. Systems using AMD CPUs, and Arm systems, are not vulnerable. Only systems using nested paging (hap, aka nested paging, aka in this case Intel EPT) are vulnerable. Only HVM and PVH guests can exploit the vulnerability. The presence and scope of the vulnerability depends on the precise optimisations performed by the compiler used to build Xen. If the compiler generates (a) a single 64-bit write, or (b) a series of read-modify-write operations in the same order as the source code, the hypervisor is not vulnerable. For example, in one test build using GCC 8.3 with normal settings, the compiler generated multiple (unlocked) read-modify-write operations in source-code order, which did not constitute a vulnerability. We have not been able to survey compilers; consequently we cannot say which compiler(s) might produce vulnerable code (with which code-generation options). The source code clearly violates the C rules, and thus should be considered vulnerable.
Affected products
No data.
Configuration 2
- 10.0
Configuration 4
- 31
- 32
No data.
Red Hat Enterprise Linux 5
kernel-xen
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | kernel-xen | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This flaw affects systems using Intel CPUs with support for nested paging (HAP). Only HVM and PVH guests can exploit the vulnerability, PV guests are not affected by this flaw.
Red Hat mitigation
Switching to shadow paging (e.g. using the `hap=0` xl domain domain configuration file parameter) will avoid exposing the vulnerability to those guests.
References (14)
- http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00024.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2020-07/msg00031.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2020/07/07/6 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://xenbits.xen.org/xsa/advisory-328.html x_refsource_MISCMitigationPatchVendor Advisory
- https://access.redhat.com/security/cve/CVE-2020-15567 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1851472 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2020-7554 Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MXESCOVI7AVRNC7HEAMFM7PMEO6D3AUH/ vendor-advisoryx_refsource_FEDORA
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VB3QJJZV23Z2IDYEMIHELWYSQBUEW6JP/ vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2020-15567
- https://security.gentoo.org/glsa/202007-02 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2020-15567
- https://www.debian.org/security/2020/dsa-4723 vendor-advisoryx_refsource_DEBIANThird Party Advisory
- https://xenbits.xen.org/xsa/advisory-328.html
Change history (0)
No recorded changes yet.