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

High 7.5 Published Updated

Attackers can retain access to 64-bit memory BARs after PCI device unplug, allowing unauthorized memory mapping and potential privilege escalation.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-58149?

CVE-2025-58149 is a high-severity missing authorization vulnerability in Xen Xen, published on 31 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-672

Which versions are affected by CVE-2025-58149?

It affects 1 product.

Linux distribution packages (4)
xen SUSE:Linux Enterprise Micro 5.5All versions4.17.6_02-150500.3.56.1
xen SUSE:Linux Enterprise Module for Basesystem 15 SP7All versions4.20.2_02-150700.3.19.1
xen SUSE:Linux Enterprise Module for Server Applications 15 SP7All versions4.20.2_02-150700.3.19.1
xen openSUSE:TumbleweedAll versions4.20.1_08-1.1

Products include Xen Xen.

How do I fix CVE-2025-58149?

Apply the vendor's patch.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2025-58149 being exploited?

There is no known exploitation of CVE-2025-58149 in the wild and no public exploit code.

All Xen Xen vulnerabilities

Sources

Also known as ALPINE-CVE-2025-58149, DEBIAN-CVE-2025-58149, GHSA-38qg-7h9q-7h29, SUSE-SU-2025:4419-1, SUSE-SU-2025:4490-1, UBUNTU-CVE-2025-58149 and 1 more.

Is CVE-2025-58149 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free