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-29647

CVE-2026-29647: OpenXiangShan NEMU Privilege Escalation

CVE-2026-29647 is a privilege escalation flaw in OpenXiangShan NEMU caused by insufficient permission enforcement, allowing unauthorized IMSIC state access. This article covers technical details, impact, and mitigation.

Published: April 23, 2026

CVE-2026-29647 Overview

CVE-2026-29647 is an improper privilege management vulnerability affecting OpenXiangShan NEMU, a RISC-V emulator used for architectural simulation and development. The vulnerability stems from insufficient enforcement of Smstateen permission controls, allowing lower-privileged code to access IMSIC (Incoming MSI Controller) state via stopei and vstopei CSRs (Control and Status Registers) even when the mstateen0.IMSIC bit is cleared.

This permission bypass vulnerability enables unauthorized access to interrupt controller state, potentially leading to cross-context information leakage or disruption of interrupt handling in virtualized or privileged environments.

Critical Impact

Lower-privileged code can bypass RISC-V Smstateen security controls to access protected IMSIC state, enabling information disclosure across privilege boundaries and potential disruption of interrupt handling mechanisms.

Affected Products

  • OpenXiangShan NEMU (RISC-V emulator)
  • Systems implementing RISC-V Smstateen extension with IMSIC support
  • XiangShan processor implementations using affected NEMU versions

Discovery Timeline

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

Technical Details for CVE-2026-29647

Vulnerability Analysis

The vulnerability is classified as CWE-269 (Improper Privilege Management) and affects the Smstateen extension implementation in OpenXiangShan NEMU. The RISC-V Smstateen extension provides fine-grained control over which state is accessible to lower privilege levels. When properly implemented, clearing the mstateen0.IMSIC bit should prevent supervisor and user-mode code from accessing IMSIC-related CSRs.

In the vulnerable implementation, the permission check for stopei (Supervisor Top External Interrupt) and vstopei (Virtual Supervisor Top External Interrupt) CSRs fails to properly validate the mstateen0.IMSIC control bit before granting access. This architectural violation allows lower-privileged execution contexts to read or write IMSIC state that should be protected by higher privilege levels.

Root Cause

The root cause lies in the CSR access control logic within NEMU's implementation of the Smstateen extension. The emulator fails to check the mstateen0.IMSIC bit before allowing access to stopei and vstopei registers. According to the RISC-V privileged specification, when mstateen0.IMSIC is cleared, any attempt by S-mode or VS-mode to access these CSRs should result in an illegal instruction exception. The vulnerable code path bypasses this check, allowing unrestricted access regardless of the mstateen0 configuration.

Attack Vector

The attack vector requires network accessibility with low attack complexity. An attacker with low-privilege code execution capability can exploit this vulnerability to:

  1. Read IMSIC state from other privilege contexts, leaking information about pending interrupts and interrupt configuration
  2. Potentially manipulate interrupt delivery by writing to protected CSRs
  3. Cause denial of service by disrupting normal interrupt handling

The vulnerability requires authenticated access but no user interaction, making it exploitable in multi-tenant or virtualized environments where privilege isolation is critical.

The vulnerability manifests in the CSR access path when handling stopei and vstopei register operations. When these registers are accessed, the implementation should verify that mstateen0.IMSIC is set before permitting the operation. The missing check allows the read/write to proceed unconditionally. For technical implementation details, see the GitHub Issue #691 tracking this vulnerability.

Detection Methods for CVE-2026-29647

Indicators of Compromise

  • Unexpected access patterns to stopei or vstopei CSRs from supervisor or user-mode contexts
  • Illegal instruction exceptions that should have occurred but were not generated
  • Anomalous interrupt behavior or delivery patterns in virtualized environments
  • Privilege escalation attempts targeting interrupt handling mechanisms

Detection Strategies

  • Monitor CSR access patterns for stopei and vstopei accesses when mstateen0.IMSIC should be cleared
  • Implement runtime privilege validation checks in security-critical RISC-V environments
  • Deploy architectural compliance testing to verify Smstateen enforcement
  • Enable tracing of CSR operations in development and testing environments

Monitoring Recommendations

  • Configure logging for all CSR access operations in NEMU debugging modes
  • Implement privilege boundary crossing alerts in virtualized RISC-V deployments
  • Review interrupt handling audit logs for unauthorized state modifications
  • Use architectural simulation tools to verify privilege isolation behavior

How to Mitigate CVE-2026-29647

Immediate Actions Required

  • Update OpenXiangShan NEMU to a patched version that properly enforces mstateen0.IMSIC checks
  • Review and audit any systems using affected NEMU versions for potential exploitation
  • Implement additional privilege isolation controls in environments where NEMU is used for security-sensitive workloads
  • Consider restricting access to NEMU instances in multi-tenant environments until patched

Patch Information

A fix has been developed and is tracked in GitHub Pull Request #3978. The patch implements proper mstateen0.IMSIC permission checking before allowing access to stopei and vstopei CSRs. Users should apply this fix or upgrade to a NEMU release that includes the correction.

For reference on the expected behavior of the Smstateen extension, consult the RISC-V Privilege State Documentation.

Workarounds

  • Restrict execution of untrusted code in NEMU environments until patches are applied
  • Implement hypervisor-level access controls to limit CSR access in virtualized deployments
  • Use alternative RISC-V emulators or simulators for security-critical testing scenarios
  • Configure mstateen0 bits conservatively and add external monitoring for policy violations
bash
# Verify NEMU version and check for applied patches
cd /path/to/NEMU
git log --oneline | grep -i "smstateen\|imsic\|stopei"
# Check if PR #3978 fix is included in your version
git log --oneline | grep -i "691\|3978"

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

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.03%

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

  • GitHub Issue #691 - OpenXiangShan

  • GitHub Pull Request #3978 - XiangShan
  • Related CVEs
  • CVE-2026-29648: 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