Description
XiangShan (Open-source high-performance RISC-V processor) commit edb1dfaf7d290ae99724594507dc46c2c2125384 (2024-11-28) contains an improper exceptional-condition handling flaw in its CSR subsystem (NewCSR). On affected versions, certain sequences of CSR operations targeting non-existent/custom CSR addresses may trigger an illegal-instruction exception but fail to reliably transfer control to the configured trap handler (mtvec), causing control-flow disruption and potentially leaving the core in a hung or unrecoverable state. This can be exploited by a local attacker able to execute code on the processor to cause a denial of service and potentially inconsistent architectural state.
Published: 2026-04-20
Score: n/a
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Mitigate
AI Analysis

Impact

The flaw originates from improper handling of exceptional conditions within the CSR subsystem (NewCSR). When a sequence of CSR operations targets a non‑existent or custom CSR address, the processor may raise an illegal‑instruction exception but fails to reliably transfer control to the configured trap handler (mtvec). This control‑flow disruption can leave the core hung or in an unrecoverable state, providing a local attacker who can execute code on the processor with the ability to trigger a denial of service and potentially corrupt architectural state.

Affected Systems

The affected platform is the XiangShan open‑source high‑performance RISC‑V processor identified by the commit edb1dfaf7d290ae99724594507dc46c2c2125384 released on 2024‑11‑28. No vendor‑specific product names or version ranges are publicly listed; the flaw applies to the indicated commit and any derived builds that have not applied the fix.

Risk and Exploitability

The vulnerability is exploitable only in environments where an attacker has local code‑execution privilege on the processor, as the flaw requires the ability to issue malformed CSR instructions. No public exploits are documented and the EPSS score is not available. The flaw is not listed in the CISA KEV catalog. While the impacted asset is a single core, the denial of service could impact systems that rely on that core for critical workloads. The risk is considered medium to high in contexts where local attackers are a concern and no mitigation is in place.

Generated by OpenCVE AI on April 21, 2026 at 00:04 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Check the XiangShan GitHub repository for any updates or patches that address the CSR exception handling flaw.
  • Apply any identified firmware or microcode updates that correct the improper exception transfer to mtvec.
  • Restrict the execution of untrusted code on affected RISC‑V cores to prevent local exploitation of the flaw.

Generated by OpenCVE AI on April 21, 2026 at 00:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 20 Apr 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Openxiangshan
Openxiangshan xiangshan
Vendors & Products Openxiangshan
Openxiangshan xiangshan

Mon, 20 Apr 2026 21:45:00 +0000

Type Values Removed Values Added
Description XiangShan (Open-source high-performance RISC-V processor) commit edb1dfaf7d290ae99724594507dc46c2c2125384 (2024-11-28) contains an improper exceptional-condition handling flaw in its CSR subsystem (NewCSR). On affected versions, certain sequences of CSR operations targeting non-existent/custom CSR addresses may trigger an illegal-instruction exception but fail to reliably transfer control to the configured trap handler (mtvec), causing control-flow disruption and potentially leaving the core in a hung or unrecoverable state. This can be exploited by a local attacker able to execute code on the processor to cause a denial of service and potentially inconsistent architectural state.
References

Subscriptions

Openxiangshan Xiangshan
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-04-20T21:18:39.405Z

Reserved: 2026-03-04T00:00:00.000Z

Link: CVE-2026-29643

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-04-20T22:16:23.507

Modified: 2026-04-20T22:16:23.507

Link: CVE-2026-29643

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-21T00:15:16Z

Weaknesses

No weakness.