CVE-2024-36953

KVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr()

Medium · published May 30, 2024

CVSS v3.1
4.4
EPSS
0%
Percentile
13.1
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
4.4 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00231 · 13.1th percentile
Published
2024-05-30T15:35Z
EPSS history
Timeline
  • 30 MAY 15:35Z
    KVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr()
    cvelistv5