CVE-2025-40065 Details
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.
A vulnerability exists in the Linux kernel's handling of the hgatp register for RISC-V virtual machines. When the Bare mode is selected, the architecture specification requires that certain fields of the hgatp register be cleared. However, the kernel was not properly adhering to this requirement, potentially leading to incorrect virtualization behavior. This issue has been addressed by modifying the register write operation to comply with the specification, ensuring that only the appropriate bits are set based on the valid mode detected from the hardware.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/2b351e3d04be9e1533f26c3464f1e44a5beace30 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/5cba8ae00279296a586d0596443109d601b1d116 | kernel.org | |
| https://git.kernel.org/stable/c/8b6e327736db013b9e385c3f6f9f0b04ddf26e43 | kernel.org | |
| https://git.kernel.org/stable/c/d00b61cd37f4c183ce0edbc9f8ccf6d5430ea357 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/feb64ca53d97b3ac8ba9ecbeae5f9426f1513650 | kernel.org |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 30, 2026 | CVE Modified | kernel.org |
| Oct 21, 2026 | CVE Modified | kernel.org |
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 28, 2025 | New CVE Received | kernel.org |
Volerion