CVE-2022-2196: Speculative execution attacks in KVM VMX

Published Sep 28, 2022
·
Updated

A flaw was found in the KVM's Intel nested virtualization feature (nVMX). Since L1 and L2 shared branch prediction modes (guest-user and guest-kernel), KVM did not protect indirect branches in L1 from steering by a malicious agent in L2. This could allow a malicious nested guest to carry out Spectre v2 attacks against L1 due to a missing IBPB at VM-exit time.

Other sources

A regression exists in the Linux Kernel within KVM: nVMX that allowed for speculative execution attacks. L2 can carry out Spectre v2 attacks on L1 due to L1 thinking it doesn't need retpolines or IBPB after running L2 due to KVM (L0) advertising eIBRS support to L1. An attacker at L2 with code execution can execute code on an indirect branch on the host machine. We recommend upgrading to Kernel 6.2 or applying the relevant stable backports (v5.4.233, v5.10.170, v5.15.96, v6.1.14).

— MITRE

A regression exists in the Linux Kernel within KVM: nVMX that allowed for speculative execution attacks. L2 can carry out Spectre v2 attacks on L1 due to L1 thinking it doesn't need retpolines or IBPB after running L2 due to KVM (L0) advertising eIBRS support to L1. An attacker at L2 with code execution can execute code on an indirect branch on the host machine. We recommend upgrading to Kernel 6.2 or past commit 2e7eab81425a

Since L1 and L2 shared branch prediction modes (guest-user and guest-kernel), KVM did not protect indirect branches in L1 from steering by a malicious agent in L2. This could allow a malicious L2 to carry out Spectre v2 attacks against L1 due to missing IBPB at VM-exit time.

Upstream patch & commit: https://lore.kernel.org/all/20221019213620.1953281-3-jmattson@google.com/ https://github.com/torvalds/linux/commit/2e7eab81425ad6c875f2ed47c0ce01e78afc38a5

— Red Hat

Affected Software

12 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-477.10.1.rt7.274.el8_8
0:4.18.0-477.10.1.rt7.274.el8_8
redhat/kernel<0:4.18.0-477.10.1.el8_8
0:4.18.0-477.10.1.el8_8
redhat/kernel<0:5.14.0-284.11.1.el9_2
0:5.14.0-284.11.1.el9_2
redhat/kernel-rt<0:5.14.0-284.11.1.rt14.296.el9_2
0:5.14.0-284.11.1.rt14.296.el9_2
redhat/kernel<6.2
6.2
Linux Linux kernel>=5.4.47<5.4.233
Linux Linux kernel>=5.6.19<5.7
Linux Linux kernel>=5.7.3<5.10.170
Linux Linux kernel>=5.11<5.15.96
Linux Linux kernel>=5.16<6.1.14
Debian Debian Linux=10.0
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-477.10.1.rt7.274.el8_8
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:4.18.0-477.10.1.el8_8
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 0:5.14.0-284.11.1.el9_2
  4. Upgrade

    Upgrade redhat/kernel-rt to a version that resolves this vulnerability.

    Fixed in 0:5.14.0-284.11.1.rt14.296.el9_2
  5. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1
  6. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.2
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.2
  8. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 2e7eab81425ad6c875f2ed47c0ce01e78afc38a5
  9. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.4.233
  10. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.10.170
  11. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.15.96
  12. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.1.14
  13. Configuration

    Mitigate by disabling Intel nested virtualization: unload the module and reload with nested=0 (e.g., `modprobe -r kvm_intel` then `modprobe kvm_intel nested=0`).

    Linux KVM Intel nested virtualization (nVMX) / kvm_intel module nested = 0

Event History

Sep 28, 2022
CVE Published
12:00 AM
Jan 9, 2023
CVE Published
via MITRE·10:59 AM
Data Sourced
via MITRE·10:59 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 11, 2023
Data Sourced
via Red Hat·11:09 AM
DescriptionSeverityAffected Software
Jul 22, 2023
Data Sourced
10:18 AM
Description
May 2, 2025
Data Sourced
via Ubuntu·04:38 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2022-2196?

CVE-2022-2196 has been classified as a high severity vulnerability due to its potential exploitation by a nested malicious guest.

2

How do I fix CVE-2022-2196?

To fix CVE-2022-2196, you should update to the latest kernel versions specified: 0:4.18.0-477.10.1.rt7.274.el8_8, 0:4.18.0-477.10.1.el8_8, 0:5.14.0-284.11.1.el9_2, or 6.2.

3

What systems are affected by CVE-2022-2196?

CVE-2022-2196 affects multiple versions of the Linux Kernel and specifically those utilized in Red Hat kernel and Debian Linux packages.

4

What is the exploitability of CVE-2022-2196?

CVE-2022-2196 can be exploited by a nested guest to manipulate branches in a host system, potentially allowing escalation of privileges.

5

Is there a known workaround for CVE-2022-2196?

There are no known workarounds for CVE-2022-2196; updating to a secure version is the only reliable solution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203