CVE-2020-8834
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")
EPSS 0.09% · 25.7th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ubuntu:22.04:LTS | linux-riscv | 0, *, 5.15.0-1017.19 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | 6.8.0-2019.20, 0 |
| Ubuntu:Pro:FIPS-updates:18.04:LTS | linux-aws-fips | 4.15.0-2000.4, 0 |
| Ubuntu:20.04:LTS | linux-gke | 5.4.0-1076.82, 5.4.0-1105.112, 5.4.0-1104.111 |
| Ubuntu:18.04:LTS | linux | 4.15.0-70.79, 4.15.0-72.81, 4.15.0-76.86 |
| Ubuntu:16.04:LTS | linux-hwe | 4.13.0-38.43~16.04.1, 4.13.0-41.46~16.04.1, 4.13.0-43.48~16.04.1 |
| Ubuntu:Pro:FIPS:18.04:LTS | linux-azure-fips | 4.15.0-1002.2, 0 |
| Ubuntu:Pro:FIPS:16.04:LTS | linux-fips | 4.4.0-1100.107, 4.4.0-1003.3, 4.4.0-1005.5 |
| Ubuntu:22.04:LTS | linux-realtime | 5.15.0-1032.35, 0 |
| Ubuntu:Pro:FIPS:18.04:LTS | linux-gcp-fips | 0, 4.15.0-1001.1 |
| Ubuntu:16.04:LTS | linux-hwe-edge | 4.11.0-14.20~16.04.1, 4.13.0-16.19~16.04.3, 4.13.0-17.20~16.04.1 |
| Ubuntu:Pro:FIPS-updates:18.04:LTS | linux-azure-fips | 4.15.0-1002.2, 0 |
| Ubuntu:20.04:LTS | linux-riscv | 0, 5.4.0-33.37, 5.4.0-30.34 |
| Ubuntu:Pro:FIPS:18.04:LTS | linux-aws-fips | 0, 4.15.0-2000.4 |
| Ubuntu:Pro:FIPS-updates:18.04:LTS | linux-fips | 4.15.0-1027.32, 0 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | 0, 5.15.0-1073.75 |
| Ubuntu:20.04:LTS | linux-azure-fde | 5.4.0-1068.71+cvm1.1, 5.4.0-1072.75+cvm1.1, 5.4.0-1073.76+cvm1.1 |
Timeline
- Apr 6, 2020 CVE Published
- Apr 14, 2021 EPSS Score
- Jun 23, 2021 EPSS Score
- Aug 24, 2021 EPSS Score
- Dec 27, 2021 EPSS Score
- Jan 6, 2022 EPSS Score
- Feb 4, 2022 EPSS Score
- Feb 28, 2022 EPSS Score
- Apr 1, 2022 EPSS Score
- Jul 3, 2022 EPSS Score
- Sep 4, 2022 EPSS Score
- Nov 6, 2022 EPSS Score
References
- https://ubuntu.com/security/CVE-2020-8834 third-party-advisory
- https://www.openwall.com/lists/oss-security/2020/04/06/2 third-party-advisory
- https://ubuntu.com/security/notices/USN-4318-1 vendor-advisory
- https://www.cve.org/CVERecord?id=CVE-2020-8834 third-party-advisory