CVE-2025-40065
JSON

Not scored

RISC-V: KVM: Write hgatp register with valid mode bits

Severity
Not scored
Exploit likelihood
0.24% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom fd7bb4a251dfc1da3496bf59a4793937c13e8c1f before feb64ca53d97b3ac8ba9ecbeae5f9426f1513650, from fd7bb4a251dfc1da3496bf59a4793937c13e8c1f before 8b6e327736db013b9e385c3f6f9f0b04ddf26e43, from fd7bb4a251dfc1da3496bf59a4793937c13e8c1f before 5cba8ae00279296a586d0596443109d601b1d116, from fd7bb4a251dfc1da3496bf59a4793937c13e8c1f before d00b61cd37f4c183ce0edbc9f8ccf6d5430ea357, from fd7bb4a251dfc1da3496bf59a4793937c13e8c1f before 2b351e3d04be9e1533f26c3464f1e44a5beace30, 5.16
Not affected: before 5.16, from 6.1.191 up to 6.1.*, from 6.6.160 up to 6.6.*, from 6.12.114 up to 6.12.*, from 6.17.3 up to 6.17.*, from 6.18 up to *
CVE List

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: RISC-V: KVM: Escribir el registro hgatp con bits de modo válidos Según la Especificación de Arquitectura Privilegiada de RISC-V, cuando se selecciona MODE=Bare, el software debe escribir cero en los campos restantes de hgatp. Hemos detectado previamente el modo válido soportado por el hardware, por lo tanto, usando un modo válido para detectar cuántos bits vmid son soportados.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-40065 changed 2026-10-30CVE Terms of Use
NVDCVE-2025-40065 changed 2026-10-30Public domain