cve.bz

CVE-2020-8834 Race Condition

6.5 mediumExploit referenceEPSS 0.3%

Medium (6.5). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
KVM in the Linux kernel on Power8 processors has a conflicting use of HSTATE_HOST_R1 to store r1 state in kvmppc_hv_entry plus in kvmppc_{save,restore}_tm, leading to a stack corruption. Because of this, an attacker with the ability run code in kernel space of a guest VM can cause the host kernel to panic. There were two commits that, according to the reporter, introduced the vulnerability: f024ee098476 ("KVM: PPC: Book3S HV: Pull out TM state save/restore into separate procedures") 87a11bb6a7f7 ("KVM: PPC: Book3S HV: Work around XER[SO] bug in fake suspend mode") The former landed in 4.8, the latter in 4.17. This was fixed without realizing the impact in 4.18 with the following three commits, though it's believed the first is the only strictly necessary commit: 6f597c6b63b6 ("KVM: PPC: Book3S PR: Add guest MSR parameter for kvmppc_save_tm()/kvmppc_restore_tm()") 7b0e827c6970 ("KVM: PPC: Book3S HV: Factor fake-suspend handling out of kvmppc_save/restore_tm") 009c872a8bc4 ("KVM: PPC: Book3S PR: Move kvmppc_save_tm/kvmppc_restore_tm to separate file")

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 29th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
CWE-368 Context Switching Race Condition
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-8834 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-8834?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-8834?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-8834 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux kernelfrom 4.8 before unspecified
Linux kernelbefore 4.18

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux4.18.6-1DEBIAN-CVE-2020-8834
Ubuntu16.04:LTSlinux-hwe4.15.0-96.97~16.04.1UBUNTU-CVE-2020-8834 USN-4318-1
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2020-8834
Ubuntu18.04:LTSlinux4.15.0-96.97UBUNTU-CVE-2020-8834 USN-4318-1
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-azure-fdeno fix listedUBUNTU-CVE-2020-8834
Ubuntu22.04:LTSlinux-riscv, linux-realtime, linux-intel-iot-realtimeno fix listedUBUNTU-CVE-2020-8834
Ubuntu24.04:LTSlinux-raspi-realtimeno fix listedUBUNTU-CVE-2020-8834
UbuntuPro:FIPS-updates:16.04:LTS, Pro:FIPS:16.04:LTSlinux-fipsno fix listedUBUNTU-CVE-2020-8834
UbuntuPro:FIPS-updates:18.04:LTSlinux-aws-fips4.15.0-2018.18UBUNTU-CVE-2020-8834
UbuntuPro:FIPS-updates:18.04:LTSlinux-azure-fips4.15.0-2006.7UBUNTU-CVE-2020-8834
UbuntuPro:FIPS-updates:18.04:LTSlinux-fips4.15.0-1029.34UBUNTU-CVE-2020-8834
UbuntuPro:FIPS:18.04:LTSlinux-aws-fips, linux-gcp-fips, linux-azure-fipsno fix listedUBUNTU-CVE-2020-8834
Red Hatenterprise_linux:7::serverperf, kernel, kernel-alt and 16 more0:4.14.0-115.26.1.el7aRHSA-2020:2854
SUSELinux Enterprise High Availability Extension 12 SP4, Linux Enterprise Live Patching 12 SP4, Linux Enterprise Workstation Extension 12 SP4kernel-default4.12.14-95.51.1SUSE-SU-2020:1141-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.20.1SUSE-SU-2020:1142-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise Live Patching 15kernel-default4.12.14-150.52.1SUSE-SU-2020:1663-1
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise Live Patching 15 SP1, Linux Enterprise Module for Legacy 15 SP1 and 1 morekernel-default4.12.14-197.40.1SUSE-SU-2020:1146-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server for SAP Applications 15kernel-docs, kernel-syms, kernel-source and 3 more4.12.14-150.52.1SUSE-SU-2020:1663-1
SUSELinux Enterprise Live Patching 12 SP4kgraft-patch-SLE12-SP4_Update_131-6.3.1SUSE-SU-2020:1141-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_41-8.3.1SUSE-SU-2020:1142-1
SUSELinux Enterprise Live Patching 15kernel-livepatch-SLE15_Update_181-1.5.1SUSE-SU-2020:1663-1
SUSELinux Enterprise Live Patching 15 SP1kernel-livepatch-SLE15-SP1_Update_111-3.3.1SUSE-SU-2020:1146-1
SUSELinux Enterprise Module for Basesystem 15 SP1kernel-source, kernel-default, kernel-zfcpdump4.12.14-197.40.1SUSE-SU-2020:1146-1
SUSELinux Enterprise Module for Development Tools 15 SP1kernel-docs, kernel-syms, kernel-source and 1 more4.12.14-197.40.1SUSE-SU-2020:1146-1
SUSELinux Enterprise Module for Public Cloud 15 SP1kernel-azure, kernel-syms-azure, kernel-source-azure4.12.14-8.30.1SUSE-SU-2020:1087-1
10 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.1kernel-docs, kernel-syms, kernel-debug and 6 more4.12.14-lp151.28.48.1openSUSE-SU-2020:0543-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue does not affect the versions of the Linux kernel as shipped with the Red Hat Enterprise Linux 5, 6, 8 and Red Hat Enterprise MRG 2.

This issue affects the versions of the kernel package as shipped with the Red Hat Enterprise Linux 7. Future kernel updates for the Red Hat Enterprise Linux 7 may address this issue.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7kernel-alt-0:4.14.0-115.26.1.el7aFixed 2020-07-07RHSA-2020:2854
Red Hat Enterprise Linux 5kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelAffected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise MRG 2kernelNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-8834.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON