CVE-2025-40065 in Kernel products
In the Linux kernel, the following vulnerability has been resolved: RISC-V: KVM: Write hgatp register with valid mode bits According to the RISC-V Privileged Architecture Spec, when MODE=Bare is selected,software must write zero to the remaining fields of hgatp. We have detected the valid mode supported by the HW...
Affects 0 products from 4 vendors. Facts below cite their sources.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
In the Linux kernel, the following vulnerability has been resolved: RISC-V: KVM: Write hgatp register with valid mode bits According to the RISC-V Privileged Architecture Spec, when MODE=Bare is selected,software must write zero to the remaining fields of hgatp. We have detected the valid mode supported by the HW before, So using a valid mode to detect how many vmid bits are supported.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-40065 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-258767-I |
| Published | 2025-10-28 |
| Last modified | 2026-10-30 |
| Source | NVD |
Analysis AI-written, not human-reviewed
A vulnerability in the Linux kernel's KVM module for RISC-V architecture allows the writing of the hgatp register with valid mode bits, which could potentially lead to unauthorized access or system instability.
An attacker with sufficient privileges could exploit this vulnerability to write the hgatp register with valid mode bits, potentially bypassing intended security measures or causing system instability.
Questions
What is CVE-2025-40065?
A vulnerability in the Linux kernel's KVM module for RISC-V architecture allows the writing of the hgatp register with valid mode bits, which could potentially lead to unauthorized access or system instability.
Is CVE-2025-40065 actively exploited?
No confirmed active exploitation of CVE-2025-40065 as of 2026-11-03.
How do I remediate CVE-2025-40065?
Priority: MEDIUM.
What systems are affected by CVE-2025-40065?
CVE-2025-40065 affects Kernel; Linux; Risc-V; Valid.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Kernel","product":"EDS-518A","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-30.