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

CVE-2024-36953
MEDIUM 4.4

En bref

Source
NVD
EPSS
EPSS 0.23 % · centile 14 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Analyzed

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.

Faiblesses (CWE)

  • CWE-476 — Déréférencement de pointeur nul

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HCISA-ADP
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)
CVSS 3.1MEDIUM 4.4CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 7d450e2821710718fd6703e9c486249cee913bab < 4404465a1bee3607ad90a4c5f9e16dfd75b85728 ; affected 7d450e2821710718fd6703e9c486249cee913bab < 17db92da8be5dd3bf63c01f4109fe47db64fc66f ; affected 7d450e2821710718fd6703e9c486249cee913bab < 3a5b0378ac6776c7c31b18e0f3c1389bd6005e80 ; affected 7d450e2821710718fd6703e9c486249cee913bab < 8d6a1c8e3de36cb0f5e866f1a582b00939e23104 ; affected 7d450e2821710718fd6703e9c486249cee913bab < 01981276d64e542c177b243f7c979fee855d5487 ; affected 7d450e2821710718fd6703e9c486249cee913bab < 6ddb4f372fc63210034b903d96ebbeb3c7195adb
Linux · Linuxaffected 4.7 ; unaffected 0 < 4.7 ; unaffected 5.10.217 ≤ 5.10.* ; unaffected 5.15.159 ≤ 5.15.* ; unaffected 6.1.91 ≤ 6.1.* ; unaffected 6.6.31 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD