CVE-2026-29642
A local attacker with privileged access can manipulate special processor registers (menvcfg) in XiangShan processors to incorrectly modify reserved bits that should never change. This breaks the processor's security model and can lead to unpredictable behavior or privilege escalation.
The vulnerability allows a local attacker with M-mode execution capability to perform crafted CSR read/write operations on menvcfg that violate RISC-V specifications by setting WPRI (Write Preserve, Read Ignore) bits. On affected XiangShan versions, these operations unexpectedly modify reserved bits in the xstatus view, circumventing the write-preservation guarantee that prevents software from altering fields outside its intended scope.
Want to know if your infrastructure is exposed to this?
Talk to TrueHacking →