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.
Product status
fd7bb4a251dfc1da3496bf59a4793937c13e8c1f (git) before d00b61cd37f4c183ce0edbc9f8ccf6d5430ea357
fd7bb4a251dfc1da3496bf59a4793937c13e8c1f (git) before 2b351e3d04be9e1533f26c3464f1e44a5beace30
5.16
Any version before 5.16
6.17.3 (semver)
6.18-rc1 (original_commit_for_fix)
References
git.kernel.org/...c/d00b61cd37f4c183ce0edbc9f8ccf6d5430ea357
git.kernel.org/...c/2b351e3d04be9e1533f26c3464f1e44a5beace30