CVE-2025-40065: Linux kernel · RISC-V: KVM: Write hgatp register with valid mode bits
Affects Linux kernelSource CVE Database V5
Not known to be exploited · fixed in d00b61cd37f4c183ce0edbc9f8ccf6d5430ea357 : update Linux kernel when convenient.
Data as of 26 Oct 2026, 14:18 UTC
Rated by Threat Radar · No CVSS score from NVD or the CNA
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 14% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in d00b61cd37f4c183ce0edbc9f8ccf6d5430ea357, 8b6e327736db013b9e385c3f6f9f0b04ddf26e43, 5cba8ae00279296a586d0596443109d601b1d116 +1
Exploitation evidence
Disclosed: evidence found.
CVE published 28 Oct 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade Linux kernel to d00b61cd37f4c183ce0edbc9f8ccf6d5430ea357, 8b6e327736db013b9e385c3f6f9f0b04ddf26e43, 5cba8ae00279296a586d0596443109d601b1d116 or 2b351e3d04be9e1533f26c3464f1e44a5beace30.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in
|
| LinuxLinux | Affected
| Fixed in– |
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.
References
- git.kernel.org/stable/c/8b6e327736db013b9e385c3f6f9f0b04ddf26e43 (opens in a new tab)
- git.kernel.org/stable/c/5cba8ae00279296a586d0596443109d601b1d116 (opens in a new tab)
- git.kernel.org/stable/c/d00b61cd37f4c183ce0edbc9f8ccf6d5430ea357 (opens in a new tab)
- git.kernel.org/stable/c/2b351e3d04be9e1533f26c3464f1e44a5beace30 (opens in a new tab)