CVE-2025-40065: Linux kernel · RISC-V: KVM: Write hgatp register with valid mode bits
Affects Linux kernelSource GCVE Database
Not known to be exploited · fixed in 6.17.0-1007.7~24.04.1 : patch Linux kernel soon.
Data as of 26 Oct 2026, 12:55 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 6.17.0-1007.7~24.04.1, 6.17.0-1008.8~24.04.1, 6.17.0-1008.8 +6
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 to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10linuxpkg:deb/ubuntu/linux@6.17.0-14.14?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-awspkg:deb/ubuntu/linux-aws@6.17.0-1007.7?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-azurepkg:deb/ubuntu/linux-azure@6.17.0-1008.8?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde@6.17.0-1017.17?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10linux-gcppkg:deb/ubuntu/linux-gcp@6.17.0-1007.7?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 25.10linux-oraclepkg:deb/ubuntu/linux-oracle@6.17.0-1007.7?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and has been released by the vendor as part of the Linux kernel security updates. Users should apply the official updates to the linux-hwe-edge kernel to remediate this vulnerability. The vendor advisory (Ubuntu Security Notice USN-8029-1) confirms that this issue is fixed in the updated kernel releases. No additional mitigations are required beyond applying the official patch.
Description
A vulnerability in the Linux kernel's RISC-V KVM implementation related to writing the hgatp register with valid mode bits has been resolved. The issue involved improper handling of the MODE=Bare setting as per the RISC-V Privileged Architecture Specification, where software must write zero to the remaining fields of the hgatp register. This flaw has been addressed in updated Linux kernel releases. Multiple Linux kernel subsystems, including RISC-V architecture components, were fixed in a comprehensive security update.
References
- ubuntu.com/security/CVE-2025-40065 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-40065 (opens in a new tab)
- git.kernel.org/linus/2b351e3d04be9e1533f26c3464f1e44a5beace30 (opens in a new tab)
- git.kernel.org/stable/c/2b351e3d04be9e1533f26c3464f1e44a5beace30 (opens in a new tab)
- git.kernel.org/stable/c/d00b61cd37f4c183ce0edbc9f8ccf6d5430ea357 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8030-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8048-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8029-3 (opens in a new tab)