Vulnerability · Published Oct 31, 2025 · Assigned by XEN

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

High 7.5

In plain English

A high-severity security flaw in Xen from Xen. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.4%top 62.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20xen4.18.5-r3ALPINE-CVE-2025-58149
Alpine:v3.21xen4.19.3-r2ALPINE-CVE-2025-58149
Alpine:v3.22xen4.20.1-r2ALPINE-CVE-2025-58149
Alpine:v3.23xen4.20.1-r2ALPINE-CVE-2025-58149
Alpine:v3.24xen4.20.1-r2ALPINE-CVE-2025-58149
Debian:12xen4.17.5+72-g01140da4e8-1DSA-6068-1
Debian:12xen4.17.5+72-g01140da4e8-1DEBIAN-CVE-2025-58149
Debian:13xen4.20.2+7-g1badcf5035-0+deb13u1DEBIAN-CVE-2025-58149
Debian:13xen4.20.2+7-g1badcf5035-0+deb13u1DSA-6068-1
Debian:14xen4.20.2+7-g1badcf5035-1DEBIAN-CVE-2025-58149
Ubuntu:22.04:LTSxenno fix listedUBUNTU-CVE-2025-58149
Ubuntu:24.04:LTSxenno fix listedUBUNTU-CVE-2025-58149
Ubuntu:25.10xenno fix listedUBUNTU-CVE-2025-58149
Ubuntu:26.04:LTSxenno fix listedUBUNTU-CVE-2025-58149
Ubuntu:26.10xenno fix listedUBUNTU-CVE-2025-58149

Affected products (as reported)

VendorProductVersions
Xen Xen see references

Weakness: CWE-672 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References