4.4medium
KVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr()
- Severity
- 4.4medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.23% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 7d450e2821710718fd6703e9c486249cee913bab before 4404465a1bee3607ad90a4c5f9e16dfd75b85728, from 7d450e2821710718fd6703e9c486249cee913bab before 17db92da8be5dd3bf63c01f4109fe47db64fc66f, from 7d450e2821710718fd6703e9c486249cee913bab before 3a5b0378ac6776c7c31b18e0f3c1389bd6005e80, from 7d450e2821710718fd6703e9c486249cee913bab before 8d6a1c8e3de36cb0f5e866f1a582b00939e23104, from 7d450e2821710718fd6703e9c486249cee913bab before 01981276d64e542c177b243f7c979fee855d5487, from 7d450e2821710718fd6703e9c486249cee913bab before 6ddb4f372fc63210034b903d96ebbeb3c7195adb, 4.7 Not affected: before 4.7, from 5.10.217 up to 5.10.*, from 5.15.159 up to 5.15.*, from 6.1.91 up to 6.1.*, from 6.6.31 up to 6.6.*, from 6.8.10 up to 6.8.* | CVE List |
| linux linux_kernel | from 4.7 before 5.10.217, from 5.11 before 5.15.159, from 5.16 before 6.1.91, from 6.2 before 6.6.31, from 6.7 before 6.8.10, 6.9 | NVD |
| debian debian_linux | 10.0 | NVD |
All scores
| CISA-ADP | 4.4medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: KVM: arm64: vgic-v2: Verifique vCPU que no sea NULL en vgic_v2_parse_attr() vgic_v2_parse_attr() es responsable de encontrar la vCPU que coincida con el CPUID proporcionado por el usuario, que (de curso) puede no ser válido. Si el ID no es válido, kvm_get_vcpu_by_id() devuelve NULL, que no se maneja correctamente. De manera similar al flujo de uaccess de GICv3, verifique que kvm_get_vcpu_by_id() realmente devuelva algo y falle el ioctl si no.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-36953 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-36953 changed 2026-06-17 | Public domain |