CVE-2019-18423 An issue was discovered in Xen through 4.12.x allowing ARM guest OS users to cause a denial of service via a XENMEM_add_to_physmap hypercall. p2m->max_mapped_gfn is used by the functions p2m_resolve_t...
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
An issue was discovered in Xen through 4.12.x allowing ARM guest OS users to cause a denial of service via a XENMEM_add_to_physmap hypercall. p2m->max_mapped_gfn is used by the functions p2m_resolve_translation_fault() and p2m_get_entry() to sanity check guest physical frame. The rest of the code in the two functions will assume that there is a valid root table and check that with BUG_ON(). The function p2m_get_root_pointer() will ignore the unused top bits of a guest physical frame. This means that the function p2m_set_entry() will alias the frame. However, p2m->max_mapped_gfn will be updated using the original frame. It would be possible to set p2m->max_mapped_gfn high enough to cover a frame that would lead p2m_get_root_pointer() to return NULL in p2m_get_entry() and p2m_resolve_translation_fault(). Additionally, the sanity check on p2m->max_mapped_gfn is off-by-one allowing "highest mapped + 1" to be considered valid. However, p2m_get_root_pointer() will return NULL. The problem could be triggered with a specially crafted hypercall XENMEM_add_to_physmap{, _batch} followed by an access to an address (via hypercall or direct access) that passes the sanity check but cause p2m_get_root_pointer() to return NULL. A malicious guest administrator may cause a hypervisor crash, resulting in a Denial of Service (DoS). Xen version 4.8 and newer are vulnerable. Only Arm systems are vulnerable. x86 systems are not affected.
Upgrade path
25 packages: 21 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/xen(Ubuntu 16.04) | = 4.5.1-0ubuntu1; = 4.5.1-0ubuntu2; = 4.6.0-1ubuntu1; = 4.6.0-1ubuntu2 +9 more | No fix listed | No fix yet |
| ubuntu/xen(Ubuntu 18.04) | = 4.9.0-0ubuntu3; = 4.9.0-0ubuntu4; = 4.9.2-0ubuntu1; All versions | No fix listed | No fix yet |
| alpine/xen(Alpine v3.10) | >= 4.8, < 4.12.1-r1 | 4.12.1-r1 | Fixed |
| alpine/xen(Alpine v3.11) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.12) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.13) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.14) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.15) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.16) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.17) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.18) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.19) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.20) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.21) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.22) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.23) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.24) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 | Fixed |
| alpine/xen(Alpine v3.8) | >= 4.8, < 4.10.4-r1 | 4.10.4-r1 | Fixed |
| alpine/xen(Alpine v3.9) | >= 4.8, < 4.11.2-r1 | 4.11.2-r1 | Fixed |
| debian/xen(Debian 12) | < 4.11.3+24-g14b62ab3e5-1 | 4.11.3+24-g14b62ab3e5-1 | Fixed |
| debian/xen(Debian 13) | < 4.11.3+24-g14b62ab3e5-1 | 4.11.3+24-g14b62ab3e5-1 | Fixed |
| debian/xen(Debian 14) | < 4.11.3+24-g14b62ab3e5-1 | 4.11.3+24-g14b62ab3e5-1 | Fixed |
| Xen | >= 4.8, <= 4.12.1 | after 4.12.1 | Fixed |
| debian linux | = 9.0; = 10.0 | No fix listed | Versions listed |
| fedoraproject fedora | = 29; = 30; = 31 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/xen(Debian:12) | < 4.11.3+24-g14b62ab3e5-1 | 4.11.3+24-g14b62ab3e5-1 |
| debian/xen(Debian:13) | < 4.11.3+24-g14b62ab3e5-1 | 4.11.3+24-g14b62ab3e5-1 |
| debian/xen(Debian:14) | < 4.11.3+24-g14b62ab3e5-1 | 4.11.3+24-g14b62ab3e5-1 |
| Xen | >= 4.8, <= 4.12.1 | No fix listed |
| debian linux | = 9.0 | No fix listed |
| debian linux | = 10.0 | No fix listed |
| fedoraproject fedora | = 29 | No fix listed |
| fedoraproject fedora | = 30 | No fix listed |
| fedoraproject fedora | = 31 | No fix listed |
| alpine/xen(Alpine:v3.10) | >= 4.8, < 4.12.1-r1 | 4.12.1-r1 |
| alpine/xen(Alpine:v3.11) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.12) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.13) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.14) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.15) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.16) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.17) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.18) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.19) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.20) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.21) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.22) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.23) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.24) | >= 4.8, < 4.13.0-r0 | 4.13.0-r0 |
| alpine/xen(Alpine:v3.8) | >= 4.8, < 4.10.4-r1 | 4.10.4-r1 |
Show 18 more
| Product | Affected versions | Fixed in |
|---|---|---|
| alpine/xen(Alpine:v3.9) | >= 4.8, < 4.11.2-r1 | 4.11.2-r1 |
| ubuntu/xen(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/xen(Ubuntu:16.04) | = 4.5.1-0ubuntu1 | No fix listed |
| ubuntu/xen(Ubuntu:16.04) | = 4.5.1-0ubuntu2 | No fix listed |
| ubuntu/xen(Ubuntu:16.04) | = 4.6.0-1ubuntu1 | No fix listed |
| ubuntu/xen(Ubuntu:16.04) | = 4.6.0-1ubuntu2 | No fix listed |
| ubuntu/xen(Ubuntu:16.04) | = 4.6.0-1ubuntu4 | No fix listed |
| ubuntu/xen(Ubuntu:16.04) | = 4.6.0-1ubuntu4.1 | No fix listed |
| ubuntu/xen(Ubuntu:16.04) | = 4.6.0-1ubuntu4.2 | No fix listed |
| ubuntu/xen(Ubuntu:16.04) | = 4.6.0-1ubuntu4.3 | No fix listed |
| ubuntu/xen(Ubuntu:16.04) | = 4.6.5-0ubuntu1 | No fix listed |
| ubuntu/xen(Ubuntu:16.04) | = 4.6.5-0ubuntu1.1 | No fix listed |
| ubuntu/xen(Ubuntu:16.04) | = 4.6.5-0ubuntu1.2 | No fix listed |
| ubuntu/xen(Ubuntu:16.04) | = 4.6.5-0ubuntu1.4 | No fix listed |
| ubuntu/xen(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/xen(Ubuntu:18.04) | = 4.9.0-0ubuntu3 | No fix listed |
| ubuntu/xen(Ubuntu:18.04) | = 4.9.0-0ubuntu4 | No fix listed |
| ubuntu/xen(Ubuntu:18.04) | = 4.9.2-0ubuntu1 | No fix listed |
References
- Debian Security Tracker CVE-2019-18423 vendor-advisory
- [oss-security] 20191031 Xen Security Advisory 301 v3 (CVE-2019-18423) - add-to-physmap can be abused to DoS Arm hosts issue-tracking mailing-list patch third-party-advisory
- xenbits.xen.org issue-tracking patch vendor-advisory
- FEDORA-2019-865bb16900 vendor-advisory
- FEDORA-2019-376ec5c107 vendor-advisory
- FEDORA-2019-cbb732f760 vendor-advisory
- 20200114 [SECURITY] [DSA 4602-1] xen security update mailing-list third-party-advisory
- GLSA-202003-56 third-party-advisory vendor-advisory
- DSA-4602 third-party-advisory vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- xenbits.xen.org issue-tracking
- www.cve.org issue-tracking