LiveActive security incident?Get immediate response
CVE Record

CVE-2024-58083: KVM: Explicitly verify target vCPU is online in kvm_get_vcpu()

In the Linux kernel, the following vulnerability has been resolved: KVM: Explicitly verify target vCPU is online in kvm_get_vcpu() Explicitly verify the target vCPU is fully online _prior_ to clamping the index in kvm_get_vcpu(). If the index is "bad", the nospec clamping will generate '0', i.e. KVM will return vCPU0 instead of NULL. In practice, the bug is unlikely to cause problems, as it will only come into play if userspace or the guest is buggy or misbehaving, e.g. KVM may send interrupts to vCPU0 instead of dropping them on the floor. However, returning vCPU0 when it shouldn't exist per online_vcpus is problematic now that KVM uses an xarray for the vCPUs array, as KVM needs to insert into the xarray before publishing the vCPU to userspace (see commit c5b077549136 ("KVM: Convert the kvm->vcpus array to a xarray")), i.e. before vCPU creation is guaranteed to succeed. As a result, incorrectly providing access to vCPU0 will trigger a use-after-free if vCPU0 is dereferenced and kvm_vm_ioctl_create_vcpu() bails out of vCPU creation due to an error and frees vCPU0. Commit afb2acb2e3a3 ("KVM: Fix vcpu_array[0] races") papered over that issue, but in doing so introduced an unsolvable teardown conundrum. Preventing accesses to vCPU0 before it's fully online will allow reverting commit afb2acb2e3a3, without re-introducing the vcpu_array[0] UAF race.

HighCVSS 7.8Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2024-58083 is a Linux KVM kernel flaw where an invalid virtual CPU reference can incorrectly resolve to vCPU0. Under error handling during vCPU creation, this can lead to use-after-free memory access. It is high severity because successful abuse could affect confidentiality, integrity, and availability, but it requires local privileges.

Executive priority

Treat this as a scheduled high-priority kernel update for virtualization infrastructure, not an emergency internet-facing incident. Accelerate patching where KVM hosts serve multiple users or tenants. Current provided evidence does not show active exploitation.

Technical view

KVM’s kvm_get_vcpu() failed to verify that the target vCPU was online before nospec index clamping. A bad index could return vCPU0 instead of NULL. With the xarray vCPU storage path, early access to vCPU0 during failed creation can trigger CWE-416 use-after-free behavior.

Likely exposure

Linux systems using KVM virtualization on affected kernel versions or vendor backports are the relevant exposure. Priority is highest for shared virtualization hosts, cloud nodes, CI runners, and systems where untrusted local users or guests can reach KVM interfaces. The provided data does not identify non-Linux products.

Exploitation context

The CVE record says the bug is unlikely to cause problems unless userspace or a guest is buggy or misbehaving. CVSS marks it local, low complexity, low privilege, and no user interaction. KEV is false in the source bundle, so there is no provided evidence of active exploitation.

Researcher notes

The core issue is incorrect vCPU lookup semantics before online_vcpus validation, interacting with xarray-backed vCPU publication and failed creation cleanup. The source bundle references multiple stable kernel commits and Debian LTS advisories, but does not provide exploit evidence or a standalone workaround.

Mitigation direction

  • Apply Linux kernel or distribution security updates that include the referenced KVM stable fixes.
  • Follow Debian LTS or your Linux vendor advisory for exact package versions.
  • Prioritize KVM hosts with shared tenants or untrusted local users.
  • Reboot into the updated kernel after patching.
  • If patch timing is blocked, review vendor guidance for temporary risk reduction.

Validation and detection

  • Inventory Linux kernel versions across KVM-capable hosts.
  • Confirm whether KVM is enabled or used for virtualization workloads.
  • Compare running kernels against vendor advisories and the CVE record.
  • Verify updated hosts have actually booted the fixed kernel.
  • Check vulnerability scanners for CVE-2024-58083 coverage and false positives.
Prepared
Confidence
medium
Sources
12

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-416: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2024-58083 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
3Timeline events
2ADP providers
11Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9CISA-ADP

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2024-58083Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
cvssV3_1other:ssvc
CVECVE Program Container
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux1d487e9bf8ba66a7174c56a0029c54b1eca8f99c, 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c, 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c, 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c, 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c, 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c, 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c, 1d487e9bf8ba66a7174c56a0029c54b1eca8f99c, 559e2696d2f47a3575e9550f101a7e59e30b1b38, d39f3cc71382165bb7efb8e06a2bd32f847de4ae, 7cee966029037a183d98cb88251ceb92a233fe63, 4.14.120, 4.19.44, 5.0.17unaffected
LinuxLinux5.1, 0, 5.4.291, 5.10.235, 5.15.179, 6.1.129, 6.6.78, 6.12.14, 6.13.3, 6.14affected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-416 · source CWE mapping

Use After Free

Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.