Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-36953
HistoryMay 30, 2024 - 3:35 p.m.

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

2024-05-3015:35:48
Linux
github.com
6
linux kernel
kvm
arm64
vgic-v2
vcpu
vulnerability

AI Score

6.8

Confidence

Low

EPSS

0

Percentile

10.3%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "7d450e282171",
        "lessThan": "4404465a1bee",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7d450e282171",
        "lessThan": "17db92da8be5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7d450e282171",
        "lessThan": "3a5b0378ac67",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7d450e282171",
        "lessThan": "8d6a1c8e3de3",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7d450e282171",
        "lessThan": "01981276d64e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "7d450e282171",
        "lessThan": "6ddb4f372fc6",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "arch/arm64/kvm/vgic/vgic-kvm-device.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.7"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.7",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "5.10.217",
        "versionType": "custom",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.159",
        "versionType": "custom",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.91",
        "versionType": "custom",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.31",
        "versionType": "custom",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.8.10",
        "versionType": "custom",
        "lessThanOrEqual": "6.8.*"
      },
      {
        "status": "unaffected",
        "version": "6.9",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "arch/arm64/kvm/vgic/vgic-kvm-device.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

6.8

Confidence

Low

EPSS

0

Percentile

10.3%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial