Skip to main content
Mallory
← Back to News
privilege-escalation-methodendpoint-software-vulnerabilitywidely-deployed-product-advisory

KVM TLB Flush Flaw Lets Guest Users Compromise Guest Kernels

Attack Tradecraft · 4 sources · Updated 3mo ago · First seen May 16, 2023

KVM TLB Flush Flaw Lets Guest Users Compromise Guest Kernels

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_FLUSH has 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.
Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

6 events · Jun 8, 2022 – May 16, 2023
  1. Reported May 16, 20234y ago

    Red Hat fixes RHEL 8.6 EUS and Virtualization 4 packages

    Red Hat issued RHSA-2024:0724 to fix CVE-2022-39189 in RHEL 8.6 Extended Update Support kernel packages and Red Hat Virtualization 4 for RHEL 8 kernel packages.

    CVE-2022-39189 - Red Hat Customer Portal
  2. May 16, 20234y ago

    Red Hat releases RHEL 8 fixes and closes tracking bug

    Red Hat issued RHSA-2023:2736 for RHEL 8 kernel-rt and RHSA-2023:2951 for RHEL 8 kernel packages. Red Hat also closed bug 2124788 for CVE-2022-39189.

    CVE-2022-39189 - Red Hat Customer Portal
  3. May 9, 20234y ago

    Red Hat releases RHEL 9 fixes

    Red Hat issued RHSA-2023:2148 and RHSA-2023:2458 to remediate CVE-2022-39189 in RHEL 9 kernel-rt and kernel packages, respectively.

    CVE-2022-39189 - Red Hat Customer Portal
  4. Sep 7, 20224y ago

    Red Hat opens tracking issue for CVE-2022-39189

    Rohit Keshri reported Red Hat bug 2124788 to track the x86 KVM flaw, which can allow an unprivileged KVM guest user to compromise the guest kernel.

    2124788 - (CVE-2022-39189) CVE-2022-39189 kernel: TLB flush operations are mishandled in certain KVM_VCPU_PREEMPTED leading to guest malfunctioning
  5. Reported Jun 15, 20224y ago

    Linux 5.19 ships with the KVM vulnerability fix

    The upstream fix for CVE-2022-39189 was included in the Linux 5.19 release. The fix was also manually backported to the 5.15 and 5.18 stable trees.

    Linux: KVM instruction emulation doesn't clear KVM_VCPU_PREEMPTED, breaking guest's TLB flushing [42451439] - Project Zero
  6. Jun 8, 20224y ago

    Linux merges upstream KVM TLB-flush fix

    Linux merged commit 6cd88243c7e03845a450795e134b488fc2afb736 to fix mishandled TLB flushes involving KVM_VCPU_PREEMPTED and instruction emulation.

    Linux: KVM instruction emulation doesn't clear KVM_VCPU_PREEMPTED, breaking guest's TLB flushing [42451439] - Project Zero
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Red Hat Enterprise Linux
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.