CVE-2026-29648

Privilege Escalation via Improper CSRs Access in OpenXiangShan NEMU

Published Apr 20, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
In OpenXiangShan NEMU, when Smstateen is enabled, clearing mstateen0.ENVCFG does not correctly restrict access to henvcfg and senvcfg. As a result, less-privileged code may read or write these CSRs without the required exception, potentially bypassing intended state-enable based isolation controls in virtualized or multi-privilege environments.

Analysis

AI-generated

Technical impact

In OpenXiangShan NEMU, enabling Smstateen allows less‑privileged code to read or write the henvcfg and senvcfg CSRs because clearing mstateen0.ENVCFG does not enforce the expected exception. This bypasses isolation controls in virtualized or multi‑privilege environments, giving attackers elevated privileges over sensitive state registers.

Affected Systems

OpenXiangShan NEMU is affected. No version information is specified.

Risk and Exploitability

The vulnerability is a privilege escalation flaw exposing privileged CSRs to code that should be denied. The EPSS score is < 1% and the vulnerability is not listed in CISA KEV, but because it enables unauthorized register access, any user with a lower privilege level in the virtual machine could exploit it. The attack vector appears to be local within the emulated environment, but could be leveraged by an attacker who can inject code into the NEMU instance. The CVSS score is 8.8.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Check the latest NEMU release notes for a fix to the Smstateen handling bug; apply the update if available.
  • If updating is not immediately possible, disable Smstateen by setting the corresponding CSR bit to avoid the bug.
  • Verify that lower‑privileged code cannot access henvcfg or senvcfg after applying any change; consider monitoring access to these CSRs.

Generated by OpenCVE AI on April 22, 2026 at 07:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Openxiangshan
Openxiangshan nemu
Vendors & Products Openxiangshan
Openxiangshan nemu
Type Values Removed Values Added
Title Privilege Escalation via Improper CSRs Access in OpenXiangShan NEMU
Type Values Removed Values Added
Title Privilege Escalation via Improper CSR Access Control in OpenXiangShan NEMU
Weaknesses CWE-284
Type Values Removed Values Added
Weaknesses CWE-269
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Privilege Escalation via Improper CSR Access Control in OpenXiangShan NEMU
Weaknesses CWE-284
Type Values Removed Values Added
Description In OpenXiangShan NEMU, when Smstateen is enabled, clearing mstateen0.ENVCFG does not correctly restrict access to henvcfg and senvcfg. As a result, less-privileged code may read or write these CSRs without the required exception, potentially bypassing intended state-enable based isolation controls in virtualized or multi-privilege environments.
References
Weaknesses
  • CWE-269

    Improper Privilege Management

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 21, 2026, 7:50 PM
Reserved
Mar 4, 2026, 12:00 AM
Status
Deferred
Published
Apr 20, 2026, 9:16 PM
Modified
Jun 17, 2026, 10:29 AM