CVEfocus › CVE database › CVE-2019-18421

CVE-2019-18421

CVSS 7.5 HighEPSS 1.7% (higher than 77% of CVEs)Published 2019-10-31Updated 2024-08-05Assigner: mitre

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

20Fixed
3Fix pending
1Will not fix
5Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04xenNot affected
vulnerable_code_not_present
Ubuntu 25.10xenNot affected
vulnerable_code_not_present
Ubuntu 24.04xenNot affected
vulnerable_code_not_present
Ubuntu 22.04xenNot affected
vulnerable_code_not_present
Ubuntu 20.04xenNot affected
vulnerable_code_not_present
Ubuntu 18.04xenFix pendingUBUNTU-CVE-2019-18421
Ubuntu 16.04xenFix pendingUBUNTU-CVE-2019-18421
Ubuntu 14.04xenFix pending
Debian 14xenFixed4.11.3+24-g14b62ab3e5-1DEBIAN-CVE-2019-18421
Debian 13xenFixed4.11.3+24-g14b62ab3e5-1DEBIAN-CVE-2019-18421
Debian 12xenFixed4.11.3+24-g14b62ab3e5-1DEBIAN-CVE-2019-18421
Red Hat Enterprise Linux 5kernel-xenWill not fix
Out of support scope
Alpine Linux 3.24xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.23xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.22xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.21xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.20xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.19xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.18xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.17xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.16xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.15xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.14xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.13xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.12xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.11xenFixed4.13.0-r0ALPINE-CVE-2019-18421
Alpine Linux 3.10xenFixed4.12.1-r1ALPINE-CVE-2019-18421
Alpine Linux 3.9xenFixed4.11.2-r1ALPINE-CVE-2019-18421
Alpine Linux 3.8xenFixed4.10.4-r1ALPINE-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:

References

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.