KVM: PPC: Book3S HV: Fix stack handling in idle_kvm_start_guest()

Kernel Updated 02 Oct 2025

Summary

28/10/2021
N/A
No i
Unrated
Not published

GSD-2021-1001876: KVM: PPC: Book3S HV: Fix stack handling in idle_kvm_start_guest(). Affects Kernel versions >= 10d91611f426d4bafd2a83d966c36da811b2f7ad, < 6d077c37c4643394b1bae9682da48164fc147ea8. 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 Kernel package is an essential component of the Linux operating system. It provides the core functionality and interfaces for the system's hardware and software components. The KVM (Kernel-based Virtual Machine) subsystem within the Kernel package enables the hosting of virtual machines on Linux systems. The PowerPC (PPC) architecture is supported by the Book3S HV variant of KVM. The idle_kvm_start_guest() function is responsible for starting a guest virtual machine when the host system is idle.

Vulnerability Detail

The idle_kvm_start_guest() function in the KVM Book3S HV implementation has a stack handling issue. This vulnerability can potentially be exploited by an attacker to execute arbitrary code with kernel privileges. The issue arises due to improper handling of the stack, which can lead to stack corruption and subsequent control flow manipulation. Successful exploitation of this vulnerability can result in privilege escalation and compromise of the host system.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel package to version v5.14.15 or later. The fix for this issue was implemented in commit 6d077c37c4643394b1bae9682da48164fc147ea8. Updating the Kernel package to the patched version will ensure that the stack handling in idle_kvm_start_guest() is corrected, mitigating the vulnerability.

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

Workaround

As a workaround, users can apply the patch provided in commit 6d077c37c4643394b1bae9682da48164fc147ea8 manually to their Kernel source code and rebuild the Kernel. This workaround should only be considered if immediate patching is not feasible or if users require more time to test the updated Kernel version.

Conclusion

The KVM: PPC: Book3S HV stack handling vulnerability in idle_kvm_start_guest() poses a significant risk to the security of Linux systems running on PowerPC architecture. It is crucial to update the Kernel package to version v5.14.15 or later to address this vulnerability. Applying the provided patch or using the Vulert playground to check for vulnerability presence are recommended steps. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

This vulnerability can allow an attacker to execute arbitrary code with kernel privileges, potentially leading to privilege escalation and compromise of the host system.

You can use the Vulert playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.

At the time of this report, there is no known exploit for this vulnerability. However, it is essential to apply the patch or update the Kernel package to mitigate the risk.

No, this vulnerability requires local access to the system in order to exploit it.

Yes, users can apply the provided patch manually to their Kernel source code and rebuild the Kernel as a temporary workaround until the updated Kernel version can be installed.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

How To Fix

No fixed version is published for this vulnerability.

To fix this vulnerability, it is recommended to update the Linux Kernel package to version v5.14.15 or later. The fix for this issue was implemented in commit 6d077c37c4643394b1bae9682da48164fc147ea8. Updating the Kernel package to the patched version will ensure that the stack handling in idle_kvm_start_guest() is corrected, mitigating the 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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.