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")
Race Condition
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
6.5 MEDIUM
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
canonicalCNA
6.5 MEDIUM
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 19%
VendorProductVersion
linuxlinux_kernel
-
canonicalubuntu_linux
16.04
canonicalubuntu_linux
18.04
opensuseleap
15.1
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
linux
bullseye
5.10.223-1
fixed
stretch
not-affected
jessie
not-affected
bullseye (security)
5.10.226-1
fixed
bookworm
6.1.106-3
fixed
bookworm (security)
6.1.112-1
fixed
sid
6.11.5-1
fixed
trixie
6.11.5-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
linux
eoan
not-affected
bionic
Fixed 4.15.0-96.97
released
xenial
not-affected
trusty
not-affected
linux-aws
eoan
not-affected
bionic
not-affected
xenial
not-affected
trusty
not-affected
linux-aws-5.0
eoan
dne
bionic
not-affected
xenial
dne
trusty
dne
linux-aws-hwe
eoan
dne
bionic
dne
xenial
not-affected
trusty
dne
linux-azure
eoan
not-affected
bionic
not-affected
xenial
not-affected
trusty
not-affected
linux-azure-5.3
eoan
dne
bionic
not-affected
xenial
dne
trusty
dne
linux-azure-edge
eoan
dne
bionic
not-affected
xenial
not-affected
trusty
dne
linux-gcp
eoan
not-affected
bionic
not-affected
xenial
not-affected
trusty
dne
linux-gcp-5.3
eoan
dne
bionic
not-affected
xenial
dne
trusty
dne
linux-gcp-edge
eoan
dne
bionic
not-affected
xenial
dne
trusty
dne
linux-gke-4.15
eoan
dne
bionic
not-affected
xenial
dne
trusty
dne
linux-gke-5.0
eoan
dne
bionic
not-affected
xenial
dne
trusty
dne
linux-gke-5.3
eoan
dne
bionic
not-affected
xenial
dne
trusty
dne
linux-hwe
eoan
dne
bionic
not-affected
xenial
Fixed 4.15.0-96.97~16.04.1
released
trusty
dne
linux-hwe-edge
eoan
dne
bionic
not-affected
xenial
ignored
trusty
dne
linux-kvm
eoan
not-affected
bionic
not-affected
xenial
not-affected
trusty
dne
linux-lts-trusty
eoan
dne
bionic
dne
xenial
dne
trusty
dne
linux-lts-xenial
eoan
dne
bionic
dne
xenial
dne
trusty
not-affected
linux-oem
eoan
not-affected
bionic
not-affected
xenial
not-affected
trusty
dne
linux-oem-5.4
eoan
dne
bionic
dne
xenial
dne
trusty
dne
linux-oem-osp1
eoan
not-affected
bionic
not-affected
xenial
dne
trusty
dne
linux-oracle
eoan
not-affected
bionic
not-affected
xenial
not-affected
trusty
dne
linux-oracle-5.0
eoan
dne
bionic
not-affected
xenial
dne
trusty
dne
linux-oracle-5.3
eoan
dne
bionic
not-affected
xenial
dne
trusty
dne
linux-raspi2
eoan
not-affected
bionic
not-affected
xenial
not-affected
trusty
dne
linux-raspi2-5.3
eoan
dne
bionic
not-affected
xenial
dne
trusty
dne
linux-snapdragon
eoan
dne
bionic
not-affected
xenial
not-affected
trusty
dne