Linux
KVM: arm64: Tear down vGIC on failed vCPU creation
In the Linux kernel, the following vulnerability has been resolved: KVM: arm64: Tear down vGIC on failed vCPU creation If kvm_arch_vcpu_create() fails to share the vCPU page with the hypervisor, we propagate the error back to the ioctl but leave the vGIC vCPU data initialised. Note only does this leak the corresponding memory when the vCPU is destroyed but it can also lead to use-after-free if the redistributor device handling tries to walk into the vCPU. Add the missing cleanup to kvm_arch_vcpu_create(), ensuring that the vGIC vCPU structures are destroyed on error.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 6211753fdfd05af9e08f54c8d0ba3ee516034878, < 07476e0d932afc53c05468076393ac35d0b4999e
- >= 6211753fdfd05af9e08f54c8d0ba3ee516034878, < 5085e02362b9948f82fceca979b8f8e12acb1cc5
- >= 6211753fdfd05af9e08f54c8d0ba3ee516034878, < c322789613407647a05ff5c451a7bf545fb34e73
- >= 6211753fdfd05af9e08f54c8d0ba3ee516034878, < 2480326eba8ae9ccc5e4c3c2dc8d407db68e3c52
- >= 6211753fdfd05af9e08f54c8d0ba3ee516034878, < f1e9087abaeedec9bf2894a282ee4f0d8383f299
- >= 6211753fdfd05af9e08f54c8d0ba3ee516034878, < 250f25367b58d8c65a1b060a2dda037eea09a672
Fixed in 07476e0d932afc53c05468076393ac35d0b4999e, 5085e02362b9948f82fceca979b8f8e12acb1cc5, c322789613407647a05ff5c451a7bf545fb34e73, 2480326eba8ae9ccc5e4c3c2dc8d407db68e3c52, f1e9087abaeedec9bf2894a282ee4f0d8383f299, 250f25367b58d8c65a1b060a2dda037eea09a672
- 3.11
Fixed in 0, 6.1.135, 6.6.88, 6.12.24, 6.13.12, 6.14.3, 6.15
Mitigation
Upgrade Linux to 07476e0d932afc53c05468076393ac35d0b4999e or 5085e02362b9948f82fceca979b8f8e12acb1cc5 or c322789613407647a05ff5c451a7bf545fb34e73 or 2480326eba8ae9ccc5e4c3c2dc8d407db68e3c52 or f1e9087abaeedec9bf2894a282ee4f0d8383f299 or 250f25367b58d8c65a1b060a2dda037eea09a672 or later.
Upgrade Linux to 0 or 6.1.135 or 6.6.88 or 6.12.24 or 6.13.12 or 6.14.3 or 6.15 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.