Lucene search

K
xenXen ProjectXSA-449
HistoryJan 30, 2024 - 12:00 p.m.

pci: phantom functions assigned to incorrect contexts

2024-01-3012:00:00
Xen Project
xenbits.xen.org
20
pci
phantom functions
iommu
device assignment
memory access
xen
x86
pci passthrough

7 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

9.0%

ISSUE DESCRIPTION

PCI devices can make use of a functionality called phantom functions, that when enabled allows the device to generate requests using the IDs of functions that are otherwise unpopulated. This allows a device to extend the number of outstanding requests.
Such phantom functions need an IOMMU context setup, but failure to setup the context is not fatal when the device is assigned. Not failing device assignment when such failure happens can lead to the primary device being assigned to a guest, while some of the phantom functions are assigned to a different domain.

IMPACT

Under certain circumstances a malicious guest assigned a PCI device with phantom functions may be able to access memory from a previous owner of the device.

VULNERABLE SYSTEMS

Systems running all version of Xen are affected.
Only x86 systems are vulnerable. Arm systems are not vulnerable.
Only systems using PCI passthrough of devices with phantom functions are affected.

7 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

9.0%