# 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 have.

Source: https://junglewise.ai/threats/cve-2025-58149-when-passing-through-pci-devices-the-detach-logic-in-libxl-won-t  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-10-31  
License: CC BY 4.0 with a link back

CVE-2025-58149 · Severity: high · CVSS 7.5 · Published 2025-10-31

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.

Technologies: [Xen](https://junglewise.ai/threats/technologies/xen-xen). Vendors: [Xen](https://junglewise.ai/threats/vendors/xen).

## Quick answers

**Is CVE-2025-58149 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-58149 being exploited in the wild.

**How severe is CVE-2025-58149?** High severity, with a CVSS score of 7.5, published 31 October 2025.

**Which products and versions are affected?** Xen. The advisory does not name versions.

**Is there a fix for CVE-2025-58149?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2025-58149?** Check whether you run Xen. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- Xen

## Related threats

- [Xen grant-table double version change race condition](https://junglewise.ai/threats/cve-2026-79610-xsa-501-was-about-issues-with-v1-v2-and-v2-v1-changes-racing)
- [Xen Xenstore crash during live update with watch depth](https://junglewise.ai/threats/cve-2026-79607-during-xenstore-live-update-the-state-record-for-a-xenstore-watch)
- [[This CNA information record relates to multiple CVEs; the text explains which aspects/vulnerabilities correspond to…](https://junglewise.ai/threats/cve-2025-58148-this-cna-information-record-relates-to-multiple-cves-the-text)
- [[This CNA information record relates to multiple CVEs; the text explains which aspects/vulnerabilities correspond to…](https://junglewise.ai/threats/cve-2025-58147-this-cna-information-record-relates-to-multiple-cves-the-text)
