In the Linux kernel, the following vulnerability has been resolved:
KVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr()
vgic_v2_parse_attr() is responsible for finding the vCPU that matches the user-provided CPUID, which (of course) may not be valid. If the ID is invalid, kvm_get_vcpu_by_id() returns NULL, which isn't handled gracefully.
Similar to the GICv3 uaccess flow, check that kvm_get_vcpu_by_id() actually returns something and fail the ioctl if not.
| Software | From | Fixed in |
|---|---|---|
| linux / linux_kernel | 4.7 | 5.10.217 |
| linux / linux_kernel | 5.11 | 5.15.159 |
| linux / linux_kernel | 5.16 | 6.1.91 |
| linux / linux_kernel | 6.2 | 6.6.31 |
| linux / linux_kernel | 6.7 | 6.8.10 |
| linux / linux_kernel | 6.9-rc1 | 6.9-rc1.x |
| linux / linux_kernel | 6.9-rc2 | 6.9-rc2.x |
| linux / linux_kernel | 6.9-rc3 | 6.9-rc3.x |
| linux / linux_kernel | 6.9-rc4 | 6.9-rc4.x |
| linux / linux_kernel | 6.9-rc5 | 6.9-rc5.x |
| linux / linux_kernel | 6.9-rc6 | 6.9-rc6.x |
| debian / debian_linux | 10.0 | 10.0.x |