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
NISTPrimary
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
Base Score
CVSS 3.x
EPSS Score
Percentile: 25%
Affected Products (NVD)
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
bookworm
6.1.106-3
fixed
bookworm (security)
6.1.112-1
fixed
bullseye
5.10.223-1
fixed
bullseye (security)
5.10.226-1
fixed
jessie
not-affected
sid
6.11.5-1
fixed
stretch
not-affected
trixie
6.11.5-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
linux
bionic
Fixed 4.15.0-96.97
released
eoan
not-affected
trusty
not-affected
xenial
not-affected
linux-aws
bionic
not-affected
eoan
not-affected
trusty
not-affected
xenial
not-affected
linux-aws-5.0
bionic
not-affected
eoan
dne
trusty
dne
xenial
dne
linux-aws-hwe
bionic
dne
eoan
dne
trusty
dne
xenial
not-affected
linux-azure
bionic
not-affected
eoan
not-affected
trusty
not-affected
xenial
not-affected
linux-azure-5.3
bionic
not-affected
eoan
dne
trusty
dne
xenial
dne
linux-azure-edge
bionic
not-affected
eoan
dne
trusty
dne
xenial
not-affected
linux-gcp
bionic
not-affected
eoan
not-affected
trusty
dne
xenial
not-affected
linux-gcp-5.3
bionic
not-affected
eoan
dne
trusty
dne
xenial
dne
linux-gcp-edge
bionic
not-affected
eoan
dne
trusty
dne
xenial
dne
linux-gke-4.15
bionic
not-affected
eoan
dne
trusty
dne
xenial
dne
linux-gke-5.0
bionic
not-affected
eoan
dne
trusty
dne
xenial
dne
linux-gke-5.3
bionic
not-affected
eoan
dne
trusty
dne
xenial
dne
linux-hwe
bionic
not-affected
eoan
dne
trusty
dne
xenial
Fixed 4.15.0-96.97~16.04.1
released
linux-hwe-edge
bionic
not-affected
eoan
dne
trusty
dne
xenial
ignored
linux-kvm
bionic
not-affected
eoan
not-affected
trusty
dne
xenial
not-affected
linux-lts-trusty
bionic
dne
eoan
dne
trusty
dne
xenial
dne
linux-lts-xenial
bionic
dne
eoan
dne
trusty
not-affected
xenial
dne
linux-oem
bionic
not-affected
eoan
not-affected
trusty
dne
xenial
not-affected
linux-oem-5.4
bionic
dne
eoan
dne
trusty
dne
xenial
dne
linux-oem-osp1
bionic
not-affected
eoan
not-affected
trusty
dne
xenial
dne
linux-oracle
bionic
not-affected
eoan
not-affected
trusty
dne
xenial
not-affected
linux-oracle-5.0
bionic
not-affected
eoan
dne
trusty
dne
xenial
dne
linux-oracle-5.3
bionic
not-affected
eoan
dne
trusty
dne
xenial
dne
linux-raspi2
bionic
not-affected
eoan
not-affected
trusty
dne
xenial
not-affected
linux-raspi2-5.3
bionic
not-affected
eoan
dne
trusty
dne
xenial
dne
linux-snapdragon
bionic
not-affected
eoan
dne
trusty
dne
xenial
not-affected
openSUSE logo
openSUSE / SLES Releases
openSUSE Product
Release
kernel-azure
suse enterprise sap 12 SP4
4.12.14-6.40.1
fixed
suse enterprise sap 12 SP5
4.12.14-16.13.1
fixed
suse enterprise sap 15 SP1
4.12.14-8.30.1
fixed
suse enterprise server 12 SP4
4.12.14-6.40.1
fixed
suse enterprise server 12 SP5
4.12.14-16.13.1
fixed
suse enterprise server 15 SP1
4.12.14-8.30.1
fixed
kernel-azure-base
suse enterprise sap 12 SP4
4.12.14-6.40.1
fixed
suse enterprise sap 12 SP5
4.12.14-16.13.1
fixed
suse enterprise sap 15 SP1
4.12.14-8.30.1
fixed
suse enterprise server 12 SP4
4.12.14-6.40.1
fixed
suse enterprise server 12 SP5
4.12.14-16.13.1
fixed
suse enterprise server 15 SP1
4.12.14-8.30.1
fixed
kernel-default
suse enterprise desktop 15 SP1
4.12.14-197.40.1
fixed
suse enterprise sap 12 SP4
4.12.14-95.51.1
fixed
suse enterprise sap 12 SP5
4.12.14-122.20.1
fixed
suse enterprise sap 15 SP1
4.12.14-197.40.1
fixed
suse enterprise server 12 SP4
4.12.14-95.51.1
fixed
suse enterprise server 12 SP5
4.12.14-122.20.1
fixed
suse enterprise server 15
4.12.14-150.52.1
fixed
suse enterprise server 15 SP1
4.12.14-197.40.1
fixed
kernel-default-base
suse enterprise desktop 15 SP1
4.12.14-197.40.1
fixed
suse enterprise sap 12 SP4
4.12.14-95.51.1
fixed
suse enterprise sap 12 SP5
4.12.14-122.20.1
fixed
suse enterprise sap 15 SP1
4.12.14-197.40.1
fixed
suse enterprise server 12 SP4
4.12.14-95.51.1
fixed
suse enterprise server 12 SP5
4.12.14-122.20.1
fixed
suse enterprise server 15
4.12.14-150.52.1
fixed
suse enterprise server 15 SP1
4.12.14-197.40.1
fixed
kernel-default-man
suse enterprise desktop 15 SP1
4.12.14-197.40.1
fixed
suse enterprise desktop 15 SP2
4.12.14-197.40.1
fixed
suse enterprise sap 12 SP4
4.12.14-95.51.1
fixed
suse enterprise sap 12 SP5
4.12.14-122.20.1
fixed
suse enterprise sap 15 SP1
4.12.14-197.40.1
fixed
suse enterprise sap 15 SP2
4.12.14-197.40.1
fixed
suse enterprise server 12 SP4
4.12.14-95.51.1
fixed
suse enterprise server 12 SP5
4.12.14-122.20.1
fixed
suse enterprise server 15
4.12.14-150.52.1
fixed
suse enterprise server 15 SP1
4.12.14-197.40.1
fixed
suse enterprise server 15 SP2
4.12.14-197.40.1
fixed
kernel-docs
suse enterprise desktop 15 SP1
4.12.14-197.40.1
fixed
suse enterprise sap 15 SP1
4.12.14-197.40.1
fixed
suse enterprise server 15
4.12.14-150.52.1
fixed
suse enterprise server 15 SP1
4.12.14-197.40.1
fixed
kernel-macros
suse enterprise desktop 15 SP1
4.12.14-197.40.1
fixed
suse enterprise sap 12 SP4
4.12.14-95.51.1
fixed
suse enterprise sap 12 SP5
4.12.14-122.20.1
fixed
suse enterprise sap 15 SP1
4.12.14-197.40.1
fixed
suse enterprise server 12 SP4
4.12.14-95.51.1
fixed
suse enterprise server 12 SP5
4.12.14-122.20.1
fixed
suse enterprise server 15
4.12.14-150.52.1
fixed
suse enterprise server 15 SP1
4.12.14-197.40.1
fixed
kernel-obs-build
suse enterprise desktop 15 SP1
4.12.14-197.40.1
fixed
suse enterprise sap 15 SP1
4.12.14-197.40.1
fixed
suse enterprise server 15
4.12.14-150.52.1
fixed
suse enterprise server 15 SP1
4.12.14-197.40.1
fixed
kernel-source
suse enterprise desktop 15 SP1
4.12.14-197.40.1
fixed
suse enterprise sap 12 SP4
4.12.14-95.51.1
fixed
suse enterprise sap 12 SP5
4.12.14-122.20.1
fixed
suse enterprise sap 15 SP1
4.12.14-197.40.1
fixed
suse enterprise server 12 SP4
4.12.14-95.51.1
fixed
suse enterprise server 12 SP5
4.12.14-122.20.1
fixed
suse enterprise server 15
4.12.14-150.52.1
fixed
suse enterprise server 15 SP1
4.12.14-197.40.1
fixed
kernel-source-azure
suse enterprise sap 12 SP4
4.12.14-6.40.1
fixed
suse enterprise sap 12 SP5
4.12.14-16.13.1
fixed
suse enterprise sap 15 SP1
4.12.14-8.30.1
fixed
suse enterprise server 12 SP4
4.12.14-6.40.1
fixed
suse enterprise server 12 SP5
4.12.14-16.13.1
fixed
suse enterprise server 15 SP1
4.12.14-8.30.1
fixed
kernel-syms
suse enterprise desktop 15 SP1
4.12.14-197.40.1
fixed
suse enterprise sap 12 SP4
4.12.14-95.51.1
fixed
suse enterprise sap 12 SP5
4.12.14-122.20.1
fixed
suse enterprise sap 15 SP1
4.12.14-197.40.1
fixed
suse enterprise server 12 SP4
4.12.14-95.51.1
fixed
suse enterprise server 12 SP5
4.12.14-122.20.1
fixed
suse enterprise server 15
4.12.14-150.52.1
fixed
suse enterprise server 15 SP1
4.12.14-197.40.1
fixed
kernel-syms-azure
suse enterprise sap 12 SP4
4.12.14-6.40.1
fixed
suse enterprise sap 12 SP5
4.12.14-16.13.1
fixed
suse enterprise sap 15 SP1
4.12.14-8.30.1
fixed
suse enterprise server 12 SP4
4.12.14-6.40.1
fixed
suse enterprise server 12 SP5
4.12.14-16.13.1
fixed
suse enterprise server 15 SP1
4.12.14-8.30.1
fixed
kernel-vanilla-base
suse enterprise server 15
4.12.14-150.52.1
fixed
reiserfs-kmp-default
suse enterprise server 15
4.12.14-150.52.1
fixed