CVE-2024-36953

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

MEDIUM
5.5
CVSS Score
Published: May 30, 2024 at 03:35 PM UTC
Updated: June 17, 2026 at 07:37 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.7 ≤ v < 5.10.2174.7 ≤ v < 5.15.1594.7 ≤ v < 6.1.914.7 ≤ v < 6.6.314.7 ≤ v < 6.8.104.7 ≤ v < 6.95.11 ≤ v < 5.15.1595.16 ≤ v < 6.1.916.2 ≤ v < 6.6.316.7 ≤ v < 6.8.104.76.9 rc16.9 rc26.9 rc36.9 rc46.9 rc56.9 rc67d450e2821710718fd6703e9c486249cee913bab
Vendor states this is fixed in 01981276d64e542c177b243f7c979fee855d5487 (fixed)
Vendor states this is fixed in 17db92da8be5dd3bf63c01f4109fe47db64fc66f (fixed)
Vendor states this is fixed in 3a5b0378ac6776c7c31b18e0f3c1389bd6005e80 (fixed)
Vendor states this is fixed in 4404465a1bee3607ad90a4c5f9e16dfd75b85728 (fixed)
Vendor states this is fixed in 6ddb4f372fc63210034b903d96ebbeb3c7195adb (fixed)
Vendor states this is fixed in 8d6a1c8e3de36cb0f5e866f1a582b00939e23104 (fixed)
Vendor states this is fixed in 4.7 (unaffected)
Vendor states this is fixed in 5.10.217 (unaffected)
Vendor states this is fixed in 5.15.159 (unaffected)
Vendor states this is fixed in 6.1.91 (unaffected)
Vendor states this is fixed in 6.6.31 (unaffected)
Vendor states this is fixed in 6.8.10 (unaffected)
Vendor states this is fixed in 6.9 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/01981276d64e542c177b243f7c979fee855d5487
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/17db92da8be5dd3bf63c01f4109fe47db64fc66f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3a5b0378ac6776c7c31b18e0f3c1389bd6005e80
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4404465a1bee3607ad90a4c5f9e16dfd75b85728
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6ddb4f372fc63210034b903d96ebbeb3c7195adb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8d6a1c8e3de36cb0f5e866f1a582b00939e23104
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card