RCE in Xen
CVE-2019-18424
An issue was discovered in Xen through 4.12.x allowing attackers to gain host OS privileges via DMA in a situation where an untrusted domain has access to a physical device. This occurs because passed through PCI devices may corrupt host memory after deassignment. When a PCI device is assigned to an untrusted domain, it is possible for that domain to program the device to DMA to an arbitrary address. The IOMMU is used to protect the host from malicious DMA by making sure that the device addresses can only target memory assigned to the guest. However, when the guest domain is torn down, or the device is deassigned, the device is assigned back to dom0, thus allowing any in-flight DMA to potentially target critical host data. An untrusted domain with access to a physical device can DMA into host memory, leading to privilege escalation. Only systems where guests are given direct access to physical devices capable of DMA (PCI pass-through) are vulnerable. Systems which do not use PCI pass-through are not vulnerable.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.8 (Medium). Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.005, 43.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Xen
- Debian Linux — versions 9.0, 10.0
- Fedoraproject Fedora — versions 29, 30, 31
- openSUSE Leap — versions 15.0
Weakness classification (CWE)
References
- xenbits.xen.org/xsa/advisory-302.html (Patch, Mitigation, Vendor Advisory)
- [oss-security] 20191031 Xen Security Advisory 302 v5 (CVE-2019-18424) - passed through PCI devices may corrupt host memory after deassignment (mailing-list, Mailing List, Third Party Advisory, Mitigation)
- openSUSE-SU-2019:2506 (vendor-advisory, Mailing List, Third Party Advisory)
- FEDORA-2019-865bb16900 (vendor-advisory)
- FEDORA-2019-376ec5c107 (vendor-advisory)
- FEDORA-2019-cbb732f760 (vendor-advisory)
- DSA-4602 (vendor-advisory, Third Party Advisory)
- 20200114 [SECURITY] [DSA 4602-1] xen security update (mailing-list, Mailing List, Third Party Advisory)
- GLSA-202003-56 (vendor-advisory, Third Party Advisory)