{"id":"CVE-2023-46835","published":"2024-01-05T16:34:49Z","modified":"2025-11-04T19:25:41Z","title":"x86/AMD: mismatch in IOMMU quarantine page table levels","vendor":"Xen","product":"Xen","tier":"tail","description":{"text":"The current setup of the quarantine page tables assumes that the\nquarantine domain (dom_io) has been initialized with an address width\nof DEFAULT_DOMAIN_ADDRESS_WIDTH (48) and hence 4 page table levels.\n\nHowever dom_io being a PV domain gets the AMD-Vi IOMMU page tables\nlevels based on the maximum (hot pluggable) RAM address, and hence on\nsystems with no RAM above the 512GB mark only 3 page-table levels are\nconfigured in the IOMMU.\n\nOn systems without RAM above the 512GB boundary\namd_iommu_quarantine_init() will setup page tables for the scratch\npage with 4 levels, while the IOMMU will be configured to use 3 levels\nonly, resulting in the last page table directory (PDE) effectively\nbecoming a page table entry (PTE), and hence a device in quarantine\nmode gaining write access to the page destined to be a PDE.\n\nDue to this page table level mismatch, the sink page the device gets\nread/write access to is no longer cleared between device assignment,\npossibly leading to data leaks.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00263,"percentile":0.18256,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"}],"references":[{"url":"https://xenbits.xenproject.org/xsa/advisory-445.html","tags":[]},{"url":"http://xenbits.xen.org/xsa/advisory-445.html","tags":[]}],"priority":{"score":7.5,"factors":[{"name":"EPSS percentile","points":3.65},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"xen","workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-04-12T04:00:28.791183Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-51001","exploited":false,"provenance":"source"}}