KVM TLB Flush Flaw Lets Guest Users Compromise Guest Kernels
Attack Tradecraft · 4 sources · Updated 3mo ago · First seen May 16, 2023

CVE-2022-39189 affects the Linux kernel’s x86 KVM subsystem, where instruction emulation can leave the KVM_VCPU_PREEMPTED flag set and mishandle paravirtualized TLB flushes. Other guest vCPUs may then skip required TLB-flush IPIs while emulation accesses memory using stale guest-virtual translations, enabling an unprivileged user inside a VM to compromise the guest kernel or cause guest malfunction. The issue affects the KVM_FEATURE_PV_TLB_FLUSH functionality introduced in Linux 4.16 and was demonstrated through emulated VMMCALL and port-I/O operations.
The upstream correction, commit 6cd88243c7e03845a450795e134b488fc2afb736, was merged for Linux 5.19 and backported to the stable 5.15 and 5.18 kernel trees; affected kernels are generally versions before 5.18.17. Red Hat rated the vulnerability Moderate with CVSS 7.0 and issued fixes for affected RHEL 8, RHEL 8 kernel-rt, RHEL 8.6 EUS, RHEL 9, RHEL 9 kernel-rt, and Red Hat Virtualization 4 on RHEL 8 packages; Red Hat reported no qualifying mitigation, making deployment of the relevant kernel updates the required remediation.
Why it matters
Impact assessment
CVE-2022-39189 enables privilege escalation from a KVM guest user context to the guest kernel on affected x86 Linux KVM deployments. Successful exploitation can fully compromise confidentiality, integrity, and availability within the VM and can also cause guest malfunction; the supplied reporting does not establish host-hypervisor escape.
- Affected population: organizations running x86 KVM/QEMU virtual machines whose host kernel exposes the paravirtualized TLB-flush feature and lacks the vendor fix.
- Exposure scope: broad across affected Linux kernel versions because
KVM_FEATURE_PV_TLB_FLUSHhas existed since Linux 4.16; practical exploitation is constrained by a timing-sensitive race during instruction emulation. - Severity: Red Hat rates the issue Moderate, CVSS 7.0. NVD/cve.org rate it CVSS 7.8. Impact is high for confidentiality, integrity, and availability of the affected guest.
- Exploitation status: the references document proof-of-concept demonstrations, but do not report confirmed exploitation in the wild.
- Operational significance: multi-tenant VM environments and systems where untrusted or lower-privileged users can execute code inside guests should prioritize remediation. The issue is a guest-kernel compromise, not a documented cross-VM or host compromise.
Affected Red Hat products
- RHEL 8, RHEL 8 kernel-rt, RHEL 8.6 EUS, RHEL 9, RHEL 9 kernel-rt, and Red Hat Virtualization 4 on RHEL 8 received fixes.
- RHEL 6 is listed as not affected.
- RHEL 7 kernel and kernel-rt are out of support scope; treat them as potentially affected until kernel provenance and backports are verified.


