Race Condition Vulnerability in Linux Kernel's KVM Package

linux Updated 02 Oct 2025

Summary

01/05/2025
N/A
Yes i
Unrated
Not published

CVE-2022-49884: In the Linux kernel, the following vulnerability has been resolved: KVM: Initialize gfn_to_pfn_cache locks in dedicated helper Move the gfn_to_pfn_cache lock initialization to another helper and call the new helper durin... Affects linux versions < 6.0.8-1. Fixed in 6.0.8-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Linux kernel is the core component of many operating systems, providing essential services for hardware and software interaction. The KVM (Kernel-based Virtual Machine) module allows the Linux kernel to function as a hypervisor, enabling the creation and management of virtual machines. This vulnerability affects the KVM module, specifically related to the gfn_to_pfn_cache lock initialization, which is crucial for maintaining the integrity of virtual machine operations.

Vulnerability Detail

In the Linux kernel, a race condition exists due to improper initialization of locks in the gfn_to_pfn_cache during virtual machine or vCPU creation. This vulnerability can lead to corrupted shared information, specifically the gpc lock, when concurrent operations occur. For instance, a race can happen between the ioctl(KVM_XEN_HVM_EVTCHN_SEND) and the kvm_gfn_to_pfn_cache_init function, resulting in unpredictable behavior and potential system instability.

How To Fix

Minimum fixed version

6.0.8-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, no specific workaround is provided for this vulnerability. It is recommended to apply the patch as soon as it is available to mitigate risks associated with the race condition.

Conclusion

CVE-2022-49884 represents a significant vulnerability in the Linux kernel's KVM module, highlighting the importance of proper lock initialization to prevent race conditions. Users are urged to update their systems to the latest patched versions to mitigate potential risks.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2022-49884 is a vulnerability in the Linux kernel's KVM module that allows for race conditions due to improper lock initialization, potentially leading to system instability.

This vulnerability can lead to corrupted shared information and unpredictable behavior in virtual machines, which may affect system performance and stability.

You should update your Linux package to version 6.0.8-1 or later to ensure that the vulnerability is patched.

Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using a manifest file like package-lock.json. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

More information can be found in the official CVE database or through security advisories related to the Linux kernel.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

Minimum fixed version

6.0.8-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback