KVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.217, 5.15.159, 6.1.91, 6.6.31, 6.8.10
- CVEs
- CVE-2024-36953
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 03:16 UTC · Revision 1
Source evidence
KVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr()
core-osv · Original sourcePublished 30 May 2024, 15:35 UTC
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.
osv:CVE-2024-36953
Kernel
Fixed versions: 5.10.217, 5.15.159, 6.1.91, 6.6.31, 6.8.10
Complete source record
{
"id": "ffe5ade8673be65837271f4d7827541d90d5cca9b3e3e8229a651a9b6a826c9d",
"url": "https://osv.dev/vulnerability/CVE-2024-36953",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "KVM: arm64: vgic-v2: Check for non-NULL vCPU in vgic_v2_parse_attr()",
"summary": "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.",
"evidence": "osv:CVE-2024-36953",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.217",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.159",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.91",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.31",
"evidence": "/affected/1/ranges"
},
{
"value": "6.8.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2024-36953",
"aliases": [
"CVE-2024-36953"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "7d450e2821710718fd6703e9c486249cee913bab"
},
{
"fixed": "4404465a1bee3607ad90a4c5f9e16dfd75b85728"
},
{
"fixed": "17db92da8be5dd3bf63c01f4109fe47db64fc66f"
},
{
"fixed": "3a5b0378ac6776c7c31b18e0f3c1389bd6005e80"
},
{
"fixed": "8d6a1c8e3de36cb0f5e866f1a582b00939e23104"
},
{
"fixed": "01981276d64e542c177b243f7c979fee855d5487"
},
{
"fixed": "6ddb4f372fc63210034b903d96ebbeb3c7195adb"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36953.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.7.0"
},
{
"fixed": "5.10.217"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.159"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.91"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.31"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.8.10"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-36953.json"
}
}
],
"modified": "2026-10-28T02:30:42.142432602Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/01981276d64e542c177b243f7c979fee855d5487",
"https://git.kernel.org/stable/c/17db92da8be5dd3bf63c01f4109fe47db64fc66f",
"https://git.kernel.org/stable/c/3a5b0378ac6776c7c31b18e0f3c1389bd6005e80",
"https://git.kernel.org/stable/c/4404465a1bee3607ad90a4c5f9e16dfd75b85728",
"https://git.kernel.org/stable/c/6ddb4f372fc63210034b903d96ebbeb3c7195adb",
"https://git.kernel.org/stable/c/8d6a1c8e3de36cb0f5e866f1a582b00939e23104",
"https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36953.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-36953",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36953.json"
}
},
"related_cves": [
{
"value": "CVE-2024-36953",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 509775,
"published_at": "2024-05-30T15:35:48.07+00:00"
}