x86/AMD: mismatch in IOMMU quarantine page table levels
Description
The current setup of the quarantine page tables assumes that the quarantine domain (dom_io) has been initialized with an address width of DEFAULT_DOMAIN_ADDRESS_WIDTH (48) and hence 4 page table levels.
However dom_io being a PV domain gets the AMD-Vi IOMMU page tables levels based on the maximum (hot pluggable) RAM address, and hence on systems with no RAM above the 512GB mark only 3 page-table levels are configured in the IOMMU.
On systems without RAM above the 512GB boundary amd_iommu_quarantine_init() will setup page tables for the scratch page with 4 levels, while the IOMMU will be configured to use 3 levels only, resulting in the last page table directory (PDE) effectively becoming a page table entry (PTE), and hence a device in quarantine mode gaining write access to the page destined to be a PDE.
Due to this page table level mismatch, the sink page the device gets read/write access to is no longer cleared between device assignment, possibly leading to data leaks.
Affected products
29- osv-coords28 versionspkg:rpm/opensuse/xen&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/xen&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/xen&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/opensuse/xen&distro=openSUSE%20Leap%20Micro%205.4pkg:rpm/opensuse/xen&distro=openSUSE%20Tumbleweedpkg:rpm/suse/xen&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOSpkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP4pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP5pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/xen&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5
< 4.16.5_08-150400.4.40.1+ 27 more
- (no CPE)range: < 4.16.5_08-150400.4.40.1
- (no CPE)range: < 4.17.2_08-150500.3.15.1
- (no CPE)range: < 4.16.5_08-150400.4.40.1
- (no CPE)range: < 4.16.5_08-150400.4.40.1
- (no CPE)range: < 4.18.0_02-1.1
- (no CPE)range: < 4.14.6_08-150300.3.60.1
- (no CPE)range: < 4.12.4_42-150100.3.98.1
- (no CPE)range: < 4.13.5_08-150200.3.83.1
- (no CPE)range: < 4.14.6_08-150300.3.60.1
- (no CPE)range: < 4.14.6_08-150300.3.60.1
- (no CPE)range: < 4.14.6_08-150300.3.60.1
- (no CPE)range: < 4.14.6_08-150300.3.60.1
- (no CPE)range: < 4.16.5_08-150400.4.40.1
- (no CPE)range: < 4.16.5_08-150400.4.40.1
- (no CPE)range: < 4.17.2_08-150500.3.15.1
- (no CPE)range: < 4.16.5_08-150400.4.40.1
- (no CPE)range: < 4.17.2_08-150500.3.15.1
- (no CPE)range: < 4.16.5_08-150400.4.40.1
- (no CPE)range: < 4.17.2_08-150500.3.15.1
- (no CPE)range: < 4.12.4_42-3.100.1
- (no CPE)range: < 4.12.4_42-150100.3.98.1
- (no CPE)range: < 4.13.5_08-150200.3.83.1
- (no CPE)range: < 4.14.6_08-150300.3.60.1
- (no CPE)range: < 4.12.4_42-3.100.1
- (no CPE)range: < 4.12.4_42-150100.3.98.1
- (no CPE)range: < 4.13.5_08-150200.3.83.1
- (no CPE)range: < 4.14.6_08-150300.3.60.1
- (no CPE)range: < 4.12.4_42-3.100.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
1News mentions
0No linked articles in our index yet.