# CVE-2025-58149: xen: When passing through PCI devices, the detach logic in libxl won't remove access permissions to any 64bit memory BARs...

CVE-2025-58149 is fixed in xen on 1 platform, first by DEBIAN-CVE-2025-58149, released October 31, 2025. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2025-58149
- Priority: High
- CVSS: 7.5 (high)
- EPSS: 0.0044
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Oct 31, 2025

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | xen Debian 12.15 (bookworm) | 4.17.5+72-g01140da4e8-1 | [DEBIAN-CVE-2025-58149](https://patchblox.com/security/data/fix/linux/debian-cve-2025-58149.md) | Oct 31, 2025 |
| Linux | xen Debian 13.5 (trixie) | 4.20.2+7-g1badcf5035-0+deb13u1 | [DEBIAN-CVE-2025-58149](https://patchblox.com/security/data/fix/linux/debian-cve-2025-58149.md) | Oct 31, 2025 |
| Linux | xen Debian 14 | 4.20.2+7-g1badcf5035-1 | [DEBIAN-CVE-2025-58149](https://patchblox.com/security/data/fix/linux/debian-cve-2025-58149.md) | Oct 31, 2025 |
| Linux | xen opensuse-leap 15.6 | 4.18.5_08-150600.3.34.2 | [SUSE-SU-2026:0012-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0012-1.md) | Jan 5, 2026 |
| Linux | xen sles 15.6 | 4.18.5_08-150600.3.34.2 | [SUSE-SU-2026:0012-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-0012-1.md) | Jan 5, 2026 |
| Linux | xen sles 15.7 | 4.20.2_02-150700.3.19.1 | [SUSE-SU-2025:4419-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-4419-1.md) | Dec 16, 2025 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
