CVE-2025-58149Operation on a Resource after Expiration or Release in XEN

Severity
7.5HIGHNVD
EPSS
0.1%
top 82.20%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedOct 31

Description

When passing through PCI devices, the detach logic in libxl won't remove access permissions to any 64bit memory BARs the device might have. As a result a domain can still have access any 64bit memory BAR when such device is no longer assigned to the domain. For PV domains the permission leak allows the domain itself to map the memory in the page-tables. For HVM it would require a compromised device model or stubdomain to map the leaked memory into the HVM domain p2m.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitability: 3.9 | Impact: 3.6

Affected Packages3 packages

Alpinexen/xen< 4.18.5-r3+4
Debianxen/xen< 4.17.5+72-g01140da4e8-1+2
NVDxen/xen

Patches

🔴Vulnerability Details

4
OSV
CVE-2025-58149: When passing through PCI devices, the detach logic in libxl won't remove access permissions to any 64bit memory BARs the device might have2025-10-31
OSV
CVE-2025-58149: When passing through PCI devices, the detach logic in libxl won't remove access permissions to any 64bit memory BARs the device might have2025-10-31
CVEList
Incorrect removal of permissions on PCI device unplug2025-10-31
GHSA
GHSA-38qg-7h9q-7h29: When passing through PCI devices, the detach logic in libxl won't remove access permissions to any 64bit memory BARs the device might have2025-10-31

📋Vendor Advisories

1
Debian
CVE-2025-58149: xen - When passing through PCI devices, the detach logic in libxl won't remove access ...2025