CVE-2025-40065: RISC-V: KVM: Write hgatp register with valid mode bits
CSIRTS triage
- What
- RISC-V KVM incorrectly allows writing hgatp register without validating mode bits, enabling privilege escalation.
- Who is affected
- RISC-V systems running KVM virtual machines on affected kernels.
- Urgency
- High severity (CVSS 7.1); not exploited but direct privilege escalation vector.
- Action
- Apply kernel patch to validate hgatp mode bits on write.
AI-assisted analysis generated from the source advisory — verify against the original.
⚡ Watch Linux kernel
Get an email when a new Linux kernel advisory drops — max one per day, one-click unsubscribe.
Details
Original advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-40065
Exploitation outlook
EPSS (FIRST.org) estimates each CVE’s probability of exploitation in the next 30 days — here is the CSIRTS.com read on those numbers.
- Low exploitation riskCVE-2025-400650.17% 30-day exploitation probability — currently an unlikely target, but scores change as exploit code circulates. Riskier than 7% of all EPSS-scored CVEs.
Referenced CVEs
| CVE | CSIRTS overview | External |
|---|---|---|
| CVE-2025-40065 | coverage & exploitation status | NVD · CVE.org |
Same CVEs, other sources
How other CERTs, PSIRTs and databases cover the vulnerabilities in this advisory.
Recent advisories for RISC-V
A cluster of recent advisories against the same product widens the attack surface — attackers routinely chain freshly published CVEs on one product, so review these together.
More from Microsoft Security Response Center
- highCVE-2025-40776: Birthday Attack against Resolvers supporting ECS2026-08-06
- mediumCVE-2025-21870: ASoC: SOF: ipc4-topology: Harden loops for looking up ALH copiers2026-08-06
- highCVE-2026-64604: KVM: VMX: Grab vmcs12 on CR8 interception update iff vCPU is in guest mode2026-08-06
- mediumCVE-2026-46059: KVM: nSVM: Always use NextRIP as vmcb02's NextRIP after first L2 VMRUN2026-08-06
- mediumCVE-2026-23247: tcp: secure_seq: add back ports to TS offset2026-08-06