RISC-V: KVM: Write hgatp register with valid mode bits
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's RISC-V KVM code can write the hgatp register without valid mode bits while detecting supported VMID bits. The input does not specify an attacker capability, impact, or conditions for exploitation.
Engineers running Linux kernels with RISC-V KVM should check whether their versions are affected; no affected versions are specified.