# CVE-2020-8834: Linux kernel KVM Power8 conflicting use of  HSTATE\_HOST\_R1

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-368
- **Published:** 2020-04-09T22:10:14.975Z
- **Modified:** 2026-06-17T03:27:01.807Z

## Who should check

- Anyone running Linux kernel \>= 4.8, \< unspecified; \>= unspecified, \< 4.18

## 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")

## Affected and fixed versions

- Linux kernel: \>= 4.8, \< unspecified; \>= unspecified, \< 4.18 (cvelist)

## Mitigation

- Upgrade Linux kernel to 4.18 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-8834. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-8834.md
Affected: Linux kernel >= 4.8, < unspecified; >= unspecified, < 4.18
Fixed in: Linux kernel 4.18

Steps:
1. Search this machine and project for Linux kernel: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-8834 being exploited?

There is no confirmed exploitation: CVE-2020-8834 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-8834?

Medium: CVSS 6.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2020-8834?

Linux kernel \>= 4.8, \< unspecified; \>= unspecified, \< 4.18.

### Is there a fix for CVE-2020-8834?

Yes. Fixed in Linux kernel 4.18. Upgrade Linux kernel to 4.18 or later.

### How do I check if I'm affected by CVE-2020-8834?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://usn.ubuntu.com/4318-1/>
- vendor: <http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00035.html>
- exploit: <https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1867717>
- other: <https://www.openwall.com/lists/oss-security/2020/04/06/2>
- other: <https://usn.ubuntu.com/usn/usn-4318-1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-8834>

HTML: <https://flawdb.com/CVE-2020-8834> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-8834>
