CVE-2020-8834: Linux kernel KVM Power8 conflicting use of HSTATE_HOST_R1
Vulnerability summary
CVE-2020-8834 is a medium (CVSS 6.5) Context Switching Race Condition vulnerability in canonical ubuntu_linux. EPSS estimates a 0.35% chance of exploitation in the next 30 days, higher than 28.3% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 6.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 13Timeline
- 09-04-2020PublishedVulnerability first disclosed.
- 16-09-2024Last modifiedVulnerability information updated.
Description
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")
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
- NVDNIST6.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
EPSS trend
Probability
0.35%
Chance of exploitation in the next 30 days
Percentile
28%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.35% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (bugs.launchpad.net)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-368Context Switching Race ConditionA product performs a series of non-atomic actions to switch between contexts that cross privilege or other security boundaries, but a race condition allows an attacker to modify or misrepresent the product's behavior during the switch.
- CWE-362Concurrent Execution using Shared Resource with Improper SynchronizationThe product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard83 products
- hyperv-daemons-6.18All versions (No fix recorded)
- hyperv-daemons-genericAll versions (No fix recorded)
- linux-aws-6.12All versions (No fix recorded) | < 6.12.65-r0
- linux-aws-6.12-boot-installedAll versions (No fix recorded)
- linux-aws-6.12-fips-boot-installedAll versions (No fix recorded)
Ubuntu13 products
- linux< 4.15.0-96.97
- linux-aws-fips< 4.15.0-2018.18 | All versions (No fix recorded)
- linux-azure-fdeAll versions (No fix recorded)
- linux-azure-fips< 4.15.0-2006.7 | All versions (No fix recorded)
- linux-fipsAll versions (No fix recorded) | < 4.15.0-1029.34
Canonical1 product
- ubuntu_linuxEOL16.04 | 18.04
Debian1 product
- linux< 4.18.6-1
Linux1 product
Linux kernel1 product
- linux kernel≥ 4.8, < unspecified | ≥ unspecified, < 4.18
Opensuse1 product
- leapEOL15.1
7 vendors · 101 products
References
9 links- www.openwall.com/lists/oss-security/2020/04/06/2X Refsource MISCREPORTAdvisoryMailing ListThird Party Advisory
- bugs.launchpad.net/ubuntu/+source/linux/+bug/1867717X Refsource MISCEVIDENCEExploitThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2020-04/msg00035.htmlVendor AdvisoryX Refsource SUSEAdvisoryMailing ListThird Party Advisory