KVM: arm64: Fix the descriptor address in __kvm_at_swap_desc()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
KVM: arm64: Fix the descriptor address in __kvm_at_swap_desc()
Using "(u64 __user *)hva + offset" to get the virtual addresses of S1/S2 descriptors looks really wrong, if offset is not zero. What we want to get for swapping is hva + offset, not hva + offset*8. ;-)
Fix it.
From the CVE record · Linux
A pointer arithmetic error in KVM arm64's __kvm_at_swap_desc() calculates the wrong virtual address for S1/S2 descriptors when the offset is nonzero. The input does not specify what an attacker could do or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with KVM arm64 should check their exposure; affected versions are not specified.