CVE-2019-18421
An issue was discovered in Xen through 4.12.x allowing x86 PV guest OS users to gain host OS privileges by leveraging race conditions in pagetable promotion and demotion operations. There are issues with restartable PV type change operations. To avoid using shadow pagetables for PV guests, Xen exposes the actual hardware pagetables to the guest. In order to prevent the guest from modifying these page tables directly, Xen keeps track of how pages are used using a type system; pages must be "promoted" before being used as a pagetable, and "demoted" before being used for any other type. Xen also allows for "recursive" promotions: i.e., an operating system promoting a page to an L4 pagetable may end up causing pages to be promoted to L3s, which may in turn cause pages to be promoted to L2s, and so on. These operations may take an arbitrarily large amount of time, and so must be re-startable. Unfortunately, making recursive pagetable promotion and demotion operations restartable is incredibly complicated, and the code contains several races which, if triggered, can cause Xen to drop or retain extra type counts, potentially allowing guests to get write access to in-use pagetables. A malicious PV guest administrator may be able to escalate their privilege to that of the host. All x86 systems with untrusted PV guests are vulnerable. HVM and PVH guests cannot exercise this vulnerability.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | xen | Fix pending | UBUNTU-CVE-2019-18421 | |
| Ubuntu 16.04 | xen | Fix pending | UBUNTU-CVE-2019-18421 | |
| Ubuntu 14.04 | xen | Fix pending | ||
| Debian 14 | xen | Fixed | 4.11.3+24-g14b62ab3e5-1 | DEBIAN-CVE-2019-18421 |
| Debian 13 | xen | Fixed | 4.11.3+24-g14b62ab3e5-1 | DEBIAN-CVE-2019-18421 |
| Debian 12 | xen | Fixed | 4.11.3+24-g14b62ab3e5-1 | DEBIAN-CVE-2019-18421 |
| Red Hat Enterprise Linux 5 | kernel-xen | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.23 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.22 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.21 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.20 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.19 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.18 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.17 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.16 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.15 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.14 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.13 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.12 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.11 | xen | Fixed | 4.13.0-r0 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.10 | xen | Fixed | 4.12.1-r1 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.9 | xen | Fixed | 4.11.2-r1 | ALPINE-CVE-2019-18421 |
| Alpine Linux 3.8 | xen | Fixed | 4.10.4-r1 | ALPINE-CVE-2019-18421 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00037.html (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://www.debian.org/security/2020/dsa-4602 (vendor-advisory)
- https://security.gentoo.org/glsa/202003-56 (vendor-advisory)
References
- http://xenbits.xen.org/xsa/advisory-299.html
- http://www.openwall.com/lists/oss-security/2019/10/31/3
- http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00037.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2BQKX7M2RHCWDBKNPX4KEBI3MJIH6AYZ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I5WWPW4BSZDDW7VHU427XTVXV7ROOFFW/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IZYATWNUGHRBG6I3TC24YHP5Y3J7I6KH/
- https://www.debian.org/security/2020/dsa-4602
- https://seclists.org/bugtraq/2020/Jan/21
- https://security.gentoo.org/glsa/202003-56
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.