NEMU contains an implementation flaw in its RISC-V Hypervisor CSR handling where henvcfg[7:4] (CBIE/CBCFE/CBZE-related fields) is incorrectly masked/updated based on menvcfg[7:4], so a machine-mode write to menvcfg can implicitly modify the hypervisor's environment configuration. This can lead to incorrect enforcement of virtualization configuration and may cause unexpected traps or denial of service when executing cache-block management instructions in virtualized contexts (V=1).
References
| Link | Resource |
|---|---|
| https://docs.riscv.org/reference/isa/priv/hypervisor.html | Product |
| https://docs.riscv.org/reference/isa/priv/machine.html | Product |
| https://github.com/OpenXiangShan/NEMU/issues/681 | Issue Tracking |
| https://github.com/OpenXiangShan/NEMU/pull/689 | Issue Tracking Patch |
Configurations
History
No history.
Information
Published : 2026-04-20 20:16
Updated : 2026-06-17 10:29
NVD link : CVE-2026-29649
Mitre link : CVE-2026-29649
CVE.ORG link : CVE-2026-29649
JSON object : View
Products Affected
xiangshan
- nemu
CWE
CWE-693
Protection Mechanism Failure
