KVM: x86: Non-Atomicness Vulnerability in Linux Kernel

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1002870: KVM: x86: fix typo in __try_cmpxchg_user causing non-atomicness. Affects Kernel versions >= e964665cc7ca13a16992b205fce63554b9efc78b, < 7cef7042458c52a401d30f2823ae9e9f22f3a90c. No fix is published. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux Kernel is a widely used open-source operating system kernel that serves as the foundation for various Linux distributions. It provides essential functionality for hardware abstraction, process management, memory management, and device drivers. The Kernel's virtualization module, known as KVM (Kernel-based Virtual Machine), enables the hosting of virtual machines on x86-based systems. KVM leverages hardware virtualization extensions to achieve efficient and secure virtualization. However, a vulnerability has been identified in the x86 implementation of KVM that introduces non-atomic behavior in the __try_cmpxchg_user function.

Vulnerability Detail

The vulnerability arises from a typographical error in the __try_cmpxchg_user function within the x86 implementation of KVM. This error leads to non-atomic behavior, potentially resulting in race conditions and data corruption. An attacker with local access to a guest virtual machine could exploit this vulnerability to manipulate shared data structures or disrupt the normal operation of the host system. The impact and attack plausibility of this vulnerability have not been proven yet.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

No workaround has been mentioned for this vulnerability.

Conclusion

The non-atomicness vulnerability in the x86 implementation of KVM within the Linux Kernel has been identified and addressed in version v5.18.2. Users are strongly advised to update their Kernel to this version or later to mitigate the potential risks associated with this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The impact of this vulnerability is not yet proven. However, it has the potential to introduce non-atomic behavior in the __try_cmpxchg_user function, leading to race conditions and data corruption.

An attacker with local access to a guest virtual machine can potentially exploit this vulnerability.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time monitoring and alerts for open-source vulnerabilities.

Yes, a patch has been released in the Linux Kernel version v5.18.2. Users are advised to update their Kernel to this version or later.

You can find more information about this vulnerability in the GSD-2022-1002870 entry of the GSD Database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1002xxx/GSD-2022-1002870.json).

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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