Vulnerability · Published Jul 7, 2020 · Assigned by mitre
CVE-2020-15567
High 7.8
In plain English
A high-severity security flaw in the xen package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | xen | 4.13.1-r4 | ALPINE-CVE-2020-15567 |
| Alpine:v3.21 | xen | 4.13.1-r4 | ALPINE-CVE-2020-15567 |
| Alpine:v3.22 | xen | 4.13.1-r4 | ALPINE-CVE-2020-15567 |
| Alpine:v3.23 | xen | 4.13.1-r4 | ALPINE-CVE-2020-15567 |
| Alpine:v3.24 | xen | 4.13.1-r4 | ALPINE-CVE-2020-15567 |
| Debian:12 | xen | 4.11.4+24-gddaaccbbab-1 | DEBIAN-CVE-2020-15567 |
| Debian:13 | xen | 4.11.4+24-gddaaccbbab-1 | DEBIAN-CVE-2020-15567 |
| Debian:14 | xen | 4.11.4+24-gddaaccbbab-1 | DEBIAN-CVE-2020-15567 |
Affected products (as reported)
References
- http://xenbits.xen.org/xsa/advisory-328.html x_refsource_MISC
- [oss-security] 20200707 Xen Security Advisory 328 v3 (CVE-2020-15567) - non-atomic modification of live EPT PTE mailing-list, x_refsource_MLIST
- DSA-4723 vendor-advisory, x_refsource_DEBIAN
- openSUSE-SU-2020:0965 vendor-advisory, x_refsource_SUSE
- FEDORA-2020-fbc13516af vendor-advisory, x_refsource_FEDORA
- openSUSE-SU-2020:0985 vendor-advisory, x_refsource_SUSE
- FEDORA-2020-76cf2b0f0a vendor-advisory, x_refsource_FEDORA
- GLSA-202007-02 vendor-advisory, x_refsource_GENTOO