Linux Kernel KVM Component Use-After-Free Vulnerability in vCPU Management

Vulnerability

A use-after-free vulnerability has been identified in the KVM (Kernel-based Virtual Machine) component of the Linux kernel. This issue arises in the management of virtual CPUs (vCPUs), specifically in the function that retrieves a vCPU based on its index. The vulnerability occurs because the function does not properly verify if the target vCPU is fully online before adjusting the index. As a result, it may incorrectly return vCPU0 when it should not, leading to potential issues when userspace or the guest misbehaves. The problem is exacerbated by KVM's use of an xarray data structure for managing vCPUs, which requires careful handling to avoid errors during vCPU creation and teardown.

Impact

Exploitation of this vulnerability can lead to a use-after-free condition, where memory that is no longer needed is accessed, potentially causing instability or security issues in the system.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.0
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.