CVE-2023-46835x86/AMD: mismatch in IOMMU quarantine page table levels
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.
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.10 | xen | Fix pending | UBUNTU-CVE-2023-46835 | |
| Ubuntu 26.04 | xen | Under investigation | UBUNTU-CVE-2023-46835 | |
| Ubuntu 25.10 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | UBUNTU-CVE-2023-46835 | |
| Ubuntu 24.04 | xen | Under investigation | UBUNTU-CVE-2023-46835 | |
| Ubuntu 22.04 | xen | Under investigation | UBUNTU-CVE-2023-46835 | |
| Ubuntu 20.04 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | UBUNTU-CVE-2023-46835 | |
| Ubuntu 18.04 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | UBUNTU-CVE-2023-46835 | |
| Ubuntu 16.04 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | UBUNTU-CVE-2023-46835 | |
| Ubuntu 14.04 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | ||
| Debian 14 | xen | Fixed | 4.17.2+76-ge1f9cb16e2-1 | DEBIAN-CVE-2023-46835 |
| Debian 13 | xen | Fixed | 4.17.2+76-ge1f9cb16e2-1 | DEBIAN-CVE-2023-46835 |
| Debian 12 | xen | Fixed | 4.17.2+76-ge1f9cb16e2-1~deb12u1 | DEBIAN-CVE-2023-46835 |
| Alpine Linux 3.24 | xen | Fixed | 4.17.2-r4 | ALPINE-CVE-2023-46835 |
| Alpine Linux 3.23 | xen | Fixed | 4.17.2-r4 | ALPINE-CVE-2023-46835 |
| Alpine Linux 3.22 | xen | Fixed | 4.17.2-r4 | ALPINE-CVE-2023-46835 |
| Alpine Linux 3.21 | xen | Fixed | 4.17.2-r4 | ALPINE-CVE-2023-46835 |
| Alpine Linux 3.20 | xen | Fixed | 4.17.2-r4 | ALPINE-CVE-2023-46835 |
| Alpine Linux 3.19 | xen | Fixed | 4.17.2-r4 | ALPINE-CVE-2023-46835 |
| Alpine Linux 3.18 | xen | Fixed | 4.17.2-r4 | ALPINE-CVE-2023-46835 |
| Alpine Linux 3.17 | xen | Fixed | 4.16.5-r4 | ALPINE-CVE-2023-46835 |
| Alpine Linux 3.16 | xen | Fixed | 4.16.5-r4 | ALPINE-CVE-2023-46835 |
| Alpine Linux 3.15 | xen | Fixed | 4.15.5-r3 | ALPINE-CVE-2023-46835 |
What the vendor says
As published in the CVE record by XEN, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Xen
Workaround: Not passing through physical devices to guests will avoid the vulnerability. Not using quarantine scratch-page mode will avoid the vulnerability, but could result in other issues.
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.