CVE-2025-58149Incorrect removal of permissions on PCI device unplug
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | xen | Fix pending | UBUNTU-CVE-2025-58149 | |
| Ubuntu 26.04 | xen | Under investigation | UBUNTU-CVE-2025-58149 | |
| Ubuntu 25.10 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | UBUNTU-CVE-2025-58149 | |
| Ubuntu 24.04 | xen | Under investigation | UBUNTU-CVE-2025-58149 | |
| Ubuntu 22.04 | xen | Under investigation | UBUNTU-CVE-2025-58149 | |
| Ubuntu 20.04 | xen | Fix pending | UBUNTU-CVE-2025-58149 | |
| Ubuntu 18.04 | xen | Fix pending | UBUNTU-CVE-2025-58149 | |
| Ubuntu 16.04 | xen | Fix pending | UBUNTU-CVE-2025-58149 | |
| Debian 14 | xen | Fixed | 4.20.2+7-g1badcf5035-1 | DEBIAN-CVE-2025-58149 |
| Debian 13 | xen | Fixed | 4.20.2+7-g1badcf5035-0+deb13u1 | DEBIAN-CVE-2025-58149 |
| Debian 12 | xen | Fixed | 4.17.5+72-g01140da4e8-1 | DEBIAN-CVE-2025-58149 |
| Alpine Linux 3.24 | xen | Fixed | 4.20.1-r2 | ALPINE-CVE-2025-58149 |
| Alpine Linux 3.23 | xen | Fixed | 4.20.1-r2 | ALPINE-CVE-2025-58149 |
| Alpine Linux 3.22 | xen | Fixed | 4.20.1-r2 | ALPINE-CVE-2025-58149 |
| Alpine Linux 3.21 | xen | Fixed | 4.19.3-r2 | ALPINE-CVE-2025-58149 |
| Alpine Linux 3.20 | xen | Fixed | 4.18.5-r3 | ALPINE-CVE-2025-58149 |
| Alpine Linux 3.19 | xen | Fixed | 4.18.5-r3 | ALPINE-CVE-2025-58149 |
What the vendor says
As published in the CVE record by XEN, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Xen
Workaround: Not doing hot unplug of PCI devices will avoid the vulnerability. Passing through PCI devices to HVM domains only will also limit the impact, as an attacker would require another compromised component to exploit it.
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.