# CVE-2025-58149: Incorrect removal of permissions on PCI device unplug

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2025-10-31T11:50:39.536Z
- Modified: 2026-10-19T13:10:00.110Z
- Weaknesses: CWE-672
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: XEN

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

(As written by CVE List.)

## Affected

- Xen Xen: consult Xen advisory XSA-476; from 4.0.0

## References

- <https://xenbits.xenproject.org/xsa/advisory-476.html> (patch, vendor-advisory)
- <http://xenbits.xen.org/xsa/advisory-476.html> (patch, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2025/10/24/1> (mailing-list, patch, third-party-advisory)

## Sources

- CVE List: [CVE-2025-58149](https://www.cve.org/CVERecord?id=CVE-2025-58149), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2025-58149](https://nvd.nist.gov/vuln/detail/CVE-2025-58149), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-58149 · Whole record: https://cve.day/CVE-2025-58149.json · Rebuilt by cve.day 2026-11-25T22:59:07.080Z
