CVE-2025-40065: RISC-V: KVM: Write hgatp register with valid mode bits
Vulnerability summary
CVE-2025-40065 is a vulnerability in linux with no CVSS score yet. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14.8% of scored vulnerabilities.
No CVSS vector published; no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 7 · Related 7Timeline
- 28-10-2025PublishedVulnerability first disclosed.
- 30-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
Risk metrics not yet published.
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
15%
Versus all other CVEs
30-day change
Increase +0.05 pp
From 0.19% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: not stated in public data.
Ubuntu129 products
- linuxAll versions (No fix recorded) | < 6.17.0-14.14
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 6.17.0-1007.7
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian1 product
- linuxAll versions (No fix recorded) | < 6.12.115-2 | < 6.17.6-1
Linux1 product
- linux≥ fd7bb4a251dfc1da3496bf59a4793937c13e8c1f, < feb64ca53d97b3ac8ba9ecbeae5f9426f1513650 | ≥ fd7bb4a251dfc1da3496bf59a4793937c13e8c1f, < 8b6e327736db013b9e385c3f6f9f0b04ddf26e43 | ≥ fd7bb4a251dfc1da3496bf59a4793937c13e8c1f, < 5cba8ae00279296a586d0596443109d601b1d116 | ≥ fd7bb4a251dfc1da3496bf59a4793937c13e8c1f, < d00b61cd37f4c183ce0edbc9f8ccf6d5430ea357 | ≥ fd7bb4a251dfc1da3496bf59a4793937c13e8c1f, < 2b351e3d04be9e1533f26c3464f1e44a5beace30 | 5.16
3 vendors · 131 products