Incorrect Privilege AssignmentWeakness · CWE-266

CVE-2025-45006

CRITICAL · 9.1 CVSS v3.1 Published 2025-07-01
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Improper mstatus.SUM bit retention (non-zero) in Open-Source RISC-V Processor commit f517abb violates privileged spec constraints, enabling potential physical memory access attacks.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

The Open-Source RISC-V Processor (commit f517abb) incorrectly retains the mstatus.SUM bit in a non-zero state, violating RISC-V Privileged Specification constraints. The SUM bit controls whether User mode can access Supervisor mode pages; improper retention allows User-mode code to potentially read/write physical memory that should be protected by the MMU, enabling privilege escalation and physical memory access attacks.

MitigationThis is a hardware/processor RTL bug requiring a fix in the core's privileged architecture implementation to properly clear mstatus.SUM on appropriate context switches (e.g., mret). Deployments using affected cores must coordinate with the processor vendor for core update or microcode patch if available.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify your RISC-V processor
    Run 'cat /proc/cpuinfo' or check the device tree (cat /proc/device-tree/compatible) to determine the processor model and vendor
    Affected if The system uses an open-source RISC-V processor core (e.g., Rocket Chip, Berkeley Out-of-Order Machine, or similar) that may have this flaw
  2. Check the RISC-V privilege architecture version
    Examine documentation or run 'riscv64-unknown-elf-gcc -v' to identify the privilege spec version your software targets
    Affected if The implementation follows a RISC-V privileged spec version prior to the fix for mstatus.SUM bit handling
  3. Read the mstatus register SUM bit
    Using a privileged instruction (CSRR) or debug interface, read the mstatus register and inspect bit 18 (SUM bit) - for example, via 'rdinstret' or a debug probe reading mstatus
    Affected if The SUM bit (mstatus[18]) is observed to be non-zero when it should be zero after a privilege mode transition
  4. Test SUM bit behavior on mode transition
    Write a test that transitions from Supervisor (S) mode to User (U) mode and verify whether the SUM bit is properly cleared or incorrectly retained
    Affected if After returning from S-mode to U-mode, the SUM bit remains set when it should have been cleared per RISC-V privileged specification
  5. Check vendor security advisories
    Search for CVE-2025-45006 or 'mstatus.SUM' in your processor vendor's security advisory database or firmware release notes
    Affected if The vendor has published an advisory acknowledging this issue for your processor model

You are affected if you are running an open-source RISC-V processor where the mstatus.SUM bit is retained (non-zero) after transitioning from Supervisor to User mode, instead of being cleared as required by the RISC-V privileged specification.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

This is a hardware/processor RTL bug requiring a fix in the core's privileged architecture implementation to properly clear mstatus.SUM on appropriate context switches (e.g., mret). Deployments using affected cores must coordinate with the processor vendor for core update or microcode patch if available.

Have this fixed Scoped from the published advisory
  • Consultation12.0 h
  • Implementation24.0 h
  • Testing48.0 h
  • Review / QA16.0 h
100.0 hours of engineering $16,800
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $26,880.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-45006 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-45006 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data