Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2026-29648

CVE-2026-29648: OpenXiangShan NEMU Privilege Escalation

CVE-2026-29648 is a privilege escalation flaw in OpenXiangShan NEMU that allows less-privileged code to bypass CSR access controls. This article covers technical details, affected versions, impact, and mitigation.

Published: April 23, 2026

CVE-2026-29648 Overview

CVE-2026-29648 is a privilege escalation vulnerability affecting OpenXiangShan NEMU, a RISC-V emulator. When the Smstateen extension is enabled, clearing the mstateen0.ENVCFG bit does not correctly restrict access to henvcfg and senvcfg Control and Status Registers (CSRs). This improper access control allows less-privileged code to read or write these CSRs without triggering the required exception, potentially bypassing intended state-enable based isolation controls in virtualized or multi-privilege environments.

Critical Impact

Less-privileged code can bypass privilege isolation controls to access restricted CSRs, potentially compromising security boundaries in virtualized RISC-V environments.

Affected Products

  • OpenXiangShan NEMU (RISC-V emulator with Smstateen extension enabled)

Discovery Timeline

  • 2026-04-20 - CVE CVE-2026-29648 published to NVD
  • 2026-04-21 - Last updated in NVD database

Technical Details for CVE-2026-29648

Vulnerability Analysis

This vulnerability stems from improper privilege management (CWE-269) in the Smstateen extension implementation within OpenXiangShan NEMU. The Smstateen extension in RISC-V is designed to provide machine-mode and hypervisor-mode software with the ability to control which state can be accessed by less-privileged modes. The mstateen0 register contains enable bits that, when cleared, should prevent lower privilege levels from accessing certain CSRs.

The flaw specifically affects the ENVCFG bit in mstateen0. When this bit is cleared, access to henvcfg (hypervisor environment configuration) and senvcfg (supervisor environment configuration) should be prohibited for supervisor and user modes, causing an illegal instruction exception when attempted. However, due to this vulnerability, the access control check is not properly enforced, allowing unauthorized CSR access.

This type of vulnerability is particularly concerning in virtualized environments where proper privilege separation is essential for maintaining security boundaries between virtual machines and the hypervisor.

Root Cause

The root cause is an implementation error in the access control logic for CSR permissions when the Smstateen extension is enabled. The NEMU emulator fails to properly check the mstateen0.ENVCFG bit before allowing access to the henvcfg and senvcfg registers, resulting in a privilege boundary bypass. According to the RISC-V Privileged Architecture specification, when mstateen0.ENVCFG is set to zero, any attempt by S-mode or HS-mode software to access senvcfg or henvcfg should raise an illegal instruction exception.

Attack Vector

An attacker operating in supervisor mode (S-mode) or user mode within a NEMU-emulated environment can exploit this vulnerability to:

  1. Read restricted CSR values: Access henvcfg and senvcfg registers to obtain sensitive configuration information about the hypervisor or supervisor environment
  2. Write to restricted CSRs: Modify environment configuration registers to alter system behavior, potentially enabling additional attack vectors
  3. Bypass isolation controls: Circumvent the intended state-enable based isolation mechanisms, undermining the security model of virtualized deployments

The vulnerability requires local access to the emulated RISC-V system with at least user-level privileges. The attack can be performed through standard CSR read/write instructions (csrr, csrw, csrrw, etc.) targeting the affected registers.

For detailed technical information on the vulnerability, refer to the GitHub NEMU Issue #690 and the RISC-V Privileged State Documentation.

Detection Methods for CVE-2026-29648

Indicators of Compromise

  • Unexpected successful CSR access operations to henvcfg or senvcfg registers from lower-privileged code when mstateen0.ENVCFG is cleared
  • Absence of expected illegal instruction exceptions when supervisor/user mode code attempts to access restricted CSRs
  • Anomalous changes to environment configuration registers that were not initiated by machine-mode or authorized hypervisor-mode software

Detection Strategies

  • Monitor CSR access patterns in NEMU logs for unauthorized reads or writes to henvcfg and senvcfg registers
  • Implement privilege boundary testing by attempting CSR access from lower privilege levels with mstateen0.ENVCFG cleared and verifying exceptions are properly raised
  • Enable detailed instruction tracing in NEMU to identify CSR operations that bypass expected access controls

Monitoring Recommendations

  • Audit NEMU configurations to ensure Smstateen extension behavior aligns with RISC-V specifications
  • Deploy runtime monitoring for privilege escalation attempts in emulated RISC-V environments
  • Review system logs for any unauthorized modifications to environment configuration registers

How to Mitigate CVE-2026-29648

Immediate Actions Required

  • Update OpenXiangShan NEMU to the latest version that includes the fix for this vulnerability
  • Review the GitHub XiangShan Pull Request #3978 for patch details and apply the corresponding NEMU update
  • If running virtualized workloads on affected NEMU versions, consider temporarily disabling the Smstateen extension until the patch is applied

Patch Information

The vulnerability has been addressed by the OpenXiangShan project. Users should update their NEMU installation to incorporate the fix. The patch ensures that access control checks for henvcfg and senvcfg CSRs properly respect the mstateen0.ENVCFG bit state, raising illegal instruction exceptions when appropriate.

For patch details, see the GitHub XiangShan Pull Request #3978 and related NEMU repository updates.

Workarounds

  • Disable the Smstateen extension if not required for your use case by modifying NEMU configuration
  • Implement additional software-level access controls in hypervisor or supervisor code to validate CSR access permissions
  • Restrict execution of untrusted code in NEMU-emulated environments until the patch is applied

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechOpenxiangshan

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-269
  • Technical References
  • RISC-V Privileged State Documentation

  • GitHub NEMU Issue #690

  • GitHub XiangShan Pull Request #3978
  • Related CVEs
  • CVE-2026-29647: OpenXiangShan NEMU Privilege Escalation

  • CVE-2026-29646: NEMU Privilege Escalation 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