NEMU contains an implementation flaw in its RISC-V...
Unreviewed
Published
Apr 20, 2026
to the GitHub Advisory Database
•
Updated Apr 20, 2026
Description
Published by the National Vulnerability Database
Apr 20, 2026
Published to the GitHub Advisory Database
Apr 20, 2026
Last updated
Apr 20, 2026
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