![]() [ Upstream commit 6ddb4f372fc63210034b903d96ebbeb3c7195adb ]
Fix CVE: CVE-2024-36953
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.
Cc: stable@vger.kernel.org
Fixes:
|
||
---|---|---|
.. | ||
kvm | ||
lib | ||
Makefile |