CVE-2025-56301
Chipsalliance Rocket-chip vulnerability
An issue was discovered in Chipsalliance Rocket-Chip commit f517abbf41abb65cea37421d3559f9739efd00a9 (2025-01-29) allowing attackers to corrupt exception handling and privilege state transitions via a flawed interaction between exception handling and MRET return mechanisms in the CSR logic when an exception is triggered during MRET execution. The Control and Status Register (CSR) logic has a flawed interaction between exception handling and exception return (MRET) mechanisms which can cause faulty trap behavior. When the MRET instruction is executed in machine mode without being in an exception state, an Instruction Access Fault may be triggered. This results in both the exception handling logic and the exception return logic activating simultaneously, leading to conflicting updates to the control and status registers.
Affected products
Rocket-chip. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Chipsalliance Rocket-chip runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/heyfenny/Vulnerability_disclosure/blob/main/RISCV/Rocket-chip/CVE-2025-56301/de · Exploit
- github.com/chipsalliance/rocket-chip
- github.com/chipsalliance/rocket-chip/blob/f517abbf41abb65cea37421d3559f9739efd00a9/src/mai
- github.com/chipsalliance/rocket-chip/blob/master/src/main/scala/rocket/CSR.scala
- lf-riscv.atlassian.net/wiki/spaces/HOME/pages/16154769/RISC-V+Technical+Specifications#ISA
- nvd.nist.gov/vuln/detail/CVE-2025-56301
- cve.org/CVERecord?id=CVE-2025-56301
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.