The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-58149

CVE-2025-58149: Xen Privilege Escalation Vulnerability

CVE-2025-58149 is a privilege escalation vulnerability in Xen that allows domains to retain access to 64-bit memory BARs after PCI device detachment. This article covers technical details, affected versions, and mitigation.

Published: April 21, 2026

CVE-2025-58149 Overview

CVE-2025-58149 is a high-severity vulnerability in the Xen hypervisor affecting PCI device passthrough functionality. When passing through PCI devices, the detach logic in libxl fails to remove access permissions to any 64-bit memory Base Address Registers (BARs) the device might have. As a result, a domain can retain access to any 64-bit memory BAR even when such a device is no longer assigned to the domain.

This vulnerability represents an "Operation on a Resource after Expiration or Release" flaw (CWE-672), where the improper cleanup of device permissions creates a window for unauthorized memory access. For PV (paravirtualized) domains, the permission leak allows the domain itself to map the memory in the page-tables. For HVM (hardware virtual machine) domains, exploitation would require a compromised device model or stubdomain to map the leaked memory into the HVM domain's p2m (physical-to-machine) mapping.

Critical Impact

A malicious or compromised guest domain can potentially read sensitive memory regions belonging to other domains or the hypervisor itself after PCI device detachment, leading to information disclosure across virtualization boundaries.

Affected Products

  • Xen Hypervisor (all versions with PCI passthrough support)
  • Systems using libxl for domain management
  • Environments with 64-bit PCI devices utilizing memory BARs

Discovery Timeline

  • 2025-10-24 - Security advisory disclosed via Openwall OSS-Security Mailing List
  • 2025-10-31 - CVE-2025-58149 published to NVD
  • 2026-01-14 - Last updated in NVD database

Technical Details for CVE-2025-58149

Vulnerability Analysis

The vulnerability exists in the libxl library's PCI device detachment logic. When a PCI device is passed through to a guest domain and subsequently detached, the cleanup routine fails to properly revoke access permissions for 64-bit memory BARs associated with the device.

PCI devices can have multiple Base Address Registers that define memory-mapped I/O regions. For 64-bit memory BARs, the address spans two consecutive 32-bit BAR registers. The detach logic in libxl appears to correctly handle 32-bit BARs but overlooks the extended address space used by 64-bit BARs, leaving residual permissions in place after device detachment.

The impact differs based on the domain type:

  • PV Domains: The leaked permissions allow the guest domain to directly map the memory regions into its own page tables, enabling direct access to potentially sensitive memory.
  • HVM Domains: Exploitation requires an additional attack vector—a compromised device model (QEMU) or stubdomain that can leverage the leaked permissions to map memory into the HVM domain's p2m mappings.

Root Cause

The root cause is an incomplete permission revocation in the libxl PCI device detachment code path. When iterating through device BARs during cleanup, the code fails to account for 64-bit memory BARs that span two consecutive BAR registers. This results in the access control entries for these memory regions not being removed from the domain's I/O Memory Management Unit (IOMMU) mappings.

Attack Vector

An attacker with control over a guest domain could exploit this vulnerability through the following sequence:

  1. Request a PCI device with 64-bit memory BARs to be passed through to their domain
  2. Note the memory addresses of the 64-bit BARs
  3. Trigger or wait for the device to be detached from the domain
  4. Attempt to map the previously accessible 64-bit BAR memory regions
  5. Read data from these memory regions that may now be assigned to other domains or contain sensitive hypervisor data

For PV domains, steps 4-5 can be performed directly. For HVM domains, the attacker would need to first compromise the device model or stubdomain to perform the memory mapping.

The attack is network-accessible as the vulnerability can be exploited remotely if the attacker has the ability to control a guest domain, which is common in cloud and multi-tenant virtualization environments.

Detection Methods for CVE-2025-58149

Indicators of Compromise

  • Unexpected memory access patterns from guest domains after PCI device detachment
  • Guest domains accessing memory regions outside their assigned physical address ranges
  • IOMMU violations or faults that indicate out-of-bounds memory access attempts
  • Anomalous device model (QEMU) behavior in HVM environments

Detection Strategies

  • Monitor Xen hypervisor logs for IOMMU-related errors or permission violations
  • Implement memory access auditing at the hypervisor level for PCI passthrough scenarios
  • Track PCI device attachment/detachment events and correlate with subsequent memory access patterns
  • Deploy integrity monitoring on device models and stubdomains

Monitoring Recommendations

  • Enable verbose logging for libxl PCI operations to track device attachment and detachment events
  • Configure IOMMU to log all access violations rather than silently blocking
  • Implement alerting on unusual guest domain memory access patterns post-device detachment
  • Review Xen security advisories regularly for updated patches and mitigations

How to Mitigate CVE-2025-58149

Immediate Actions Required

  • Review the Xen Project Security Advisory 476 for specific patch information
  • Identify all systems using Xen with PCI passthrough functionality
  • Prioritize patching systems in multi-tenant or cloud environments where domain isolation is critical
  • Temporarily disable PCI passthrough for untrusted domains until patches are applied

Patch Information

The Xen Project has released patches addressing this vulnerability as documented in XSA-476. Administrators should consult the Xen Project Security Advisory 476 for the specific patches applicable to their Xen version. The patches correct the libxl detach logic to properly enumerate and revoke permissions for 64-bit memory BARs during PCI device detachment.

Apply the official patches from the Xen Project by following these steps:

  1. Download the appropriate patch for your Xen version from the advisory
  2. Apply the patch to your Xen source tree
  3. Rebuild and reinstall the Xen toolstack (libxl)
  4. Restart the Xen daemon to load the updated library

Workarounds

  • Avoid using PCI passthrough with devices that have 64-bit memory BARs until patches are applied
  • Restrict PCI device assignment to trusted domains only
  • Implement additional monitoring for memory access patterns in environments where patching is delayed
  • Consider using SR-IOV virtual functions instead of full PCI passthrough where possible, as they may have different memory mapping characteristics
bash
# Check for PCI devices with 64-bit BARs before passthrough
lspci -vv | grep -A 20 "Memory at" | grep "64-bit"

# Monitor Xen domain memory mappings
xl debug-keys i
# Check /var/log/xen/xen-hotplug.log for device events

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechXen

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-672
  • Vendor Resources
  • Xen Project Security Advisory 476

  • Openwall OSS-Security Mailing List

  • Xen Project Security Advisory 476
  • Related CVEs
  • CVE-2026-31788: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-23553: Xen Privilege Escalation Vulnerability

  • CVE-2024-31145: Xen Privilege Escalation Vulnerability

  • CVE-2026-23555: Xenstored Denial of Service Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English