CVE-2025-40065
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.
Affected versions
Linux kernel versions
5.16
and later are affected. Fixed in
6.17.3,
6.18
and their respective stable series.
References
The following references provide additional information about CVE-2025-40065 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/2b351e3d04be9e1533f26c3464f1e44a5beace30
-
PatchKernel patch commithttps://git.kernel.org/stable/c/d00b61cd37f4c183ce0edbc9f8ccf6d5430ea357
Frequently asked questions
-
What is CVE-2025-40065?
CVE-2025-40065 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 5.16 onward and has been patched in 6.17.3 and 6.18. CVE-2025-40065 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2025-40065?
Yes — CVE-2025-40065 has been patched. Fixed versions include 6.17.3 and 6.18. If you are running Linux kernel 5.16 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-40065 actively exploited?
No — CVE-2025-40065 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.