CVE-2025-40065

high

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

https://git.kernel.org/stable/c/feb64ca53d97b3ac8ba9ecbeae5f9426f1513650

https://git.kernel.org/stable/c/d00b61cd37f4c183ce0edbc9f8ccf6d5430ea357

https://git.kernel.org/stable/c/8b6e327736db013b9e385c3f6f9f0b04ddf26e43

https://git.kernel.org/stable/c/5cba8ae00279296a586d0596443109d601b1d116

https://git.kernel.org/stable/c/2b351e3d04be9e1533f26c3464f1e44a5beace30

https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-36463

Details

Source: Mitre, NVD

Published: 2025-10-28

Updated: 2026-10-30

Risk Information

CVSS v2

Base Score: 10

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Severity: Critical

CVSS v3

Base Score: 8.4

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Severity: High

EPSS

EPSS: 0.00277