First published: Tue Jul 20 2021(Updated: )
A flaw was found in the KVM's AMD code for supporting SVM nested virtualization. The flaw occurs when processing the VMCB (virtual machine control block) provided by the L1 guest to spawn/handle a nested guest (L2). Due to improper validation of the "virt_ext" field, this issue could allow a malicious L1 to disable both VMLOAD/VMSAVE intercepts and VLS (Virtual VMLOAD/VMSAVE) for the L2 guest. As a result, the L2 guest would be allowed to read/write physical pages of the host, resulting in a crash of the entire system, leak of sensitive data or potential guest-to-host escape.
Credit: secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/kernel-rt | <0:3.10.0-1160.45.1.rt56.1185.el7 | 0:3.10.0-1160.45.1.rt56.1185.el7 |
redhat/kernel | <0:3.10.0-1160.45.1.el7 | 0:3.10.0-1160.45.1.el7 |
redhat/kernel | <0:3.10.0-957.84.1.el7 | 0:3.10.0-957.84.1.el7 |
redhat/kernel | <0:3.10.0-1062.59.1.el7 | 0:3.10.0-1062.59.1.el7 |
redhat/kernel-rt | <0:4.18.0-305.25.1.rt7.97.el8_4 | 0:4.18.0-305.25.1.rt7.97.el8_4 |
redhat/kernel | <0:4.18.0-305.25.1.el8_4 | 0:4.18.0-305.25.1.el8_4 |
redhat/kernel | <0:4.18.0-147.56.1.el8_1 | 0:4.18.0-147.56.1.el8_1 |
redhat/kernel-rt | <0:4.18.0-193.68.1.rt13.118.el8_2 | 0:4.18.0-193.68.1.rt13.118.el8_2 |
redhat/kernel | <0:4.18.0-193.68.1.el8_2 | 0:4.18.0-193.68.1.el8_2 |
redhat/kernel | <5.14 | 5.14 |
Linux Kernel | >=4.13<4.14.245 | |
Linux Kernel | >=4.15<4.19.205 | |
Linux Kernel | >=4.20<5.4.142 | |
Linux Kernel | >=5.5<5.10.60 | |
Linux Kernel | >=5.11<5.13.12 | |
Linux Kernel | =5.14 | |
Linux Kernel | =5.14-rc1 | |
Linux Kernel | =5.14-rc2 | |
Linux Kernel | =5.14-rc3 | |
Linux Kernel | =5.14-rc4 | |
Linux Kernel | =5.14-rc5 | |
Linux Kernel | =5.14-rc6 | |
Red Hat Fedora | =33 | |
Red Hat Fedora | =34 | |
All of | ||
Red Hat Software Collections | ||
Red Hat Enterprise Linux Server | =7.0 | |
Red Hat OpenStack for IBM Power | =13 | |
Red Hat Enterprise Linux | =8.0 | |
Red Hat Enterprise Linux Desktop | =7.0 | |
Red Hat Enterprise Linux Server EUS | =8.1 | |
Red Hat Enterprise Linux Server EUS | =8.2 | |
Red Hat Enterprise Linux Server EUS | =8.4 | |
Red Hat Enterprise Linux for IBM Z Systems | =7.0 | |
Red Hat Enterprise Linux for IBM Z Systems | =8.0 | |
Red Hat Enterprise Linux for IBM Z Systems (s390x) | =8.1 | |
Red Hat Enterprise Linux for IBM Z Systems (s390x) | =8.2 | |
Red Hat Enterprise Linux for IBM Z Systems (s390x) | =8.4 | |
Red Hat Enterprise Linux for Power, big endian | =7.0 | |
Red Hat Enterprise Linux for Power, little endian | =7.0 | |
Red Hat Enterprise Linux for Power, little endian | =8.0 | |
Red Hat Enterprise Linux for Power, little endian - Extended Update Support | =8.1 | |
Red Hat Enterprise Linux for Power, little endian - Extended Update Support | =8.2 | |
Red Hat Enterprise Linux for Power, little endian - Extended Update Support | =8.4 | |
Red Hat Enterprise Linux for Real Time | =7 | |
Red Hat Enterprise Linux for Real Time | =8 | |
Red Hat Enterprise Linux for Real Time for NFV | =7 | |
Red Hat Enterprise Linux for Real Time for NFV | =8 | |
Red Hat Enterprise Linux for Real Time for NFV | =8.2 | |
Red Hat Enterprise Linux for Real Time for NFV | =8.4 | |
Red Hat Enterprise Linux for Real Time | =8.2 | |
Red Hat Enterprise Linux for Real Time | =8.4 | |
Red Hat Enterprise Linux for Scientific Computing | =7.0 | |
Red Hat Enterprise Linux Server | =7.0 | |
Red Hat Enterprise Linux Server | =7.6 | |
Red Hat Enterprise Linux Server | =7.7 | |
Red Hat Enterprise Linux Server | =8.2 | |
Red Hat Enterprise Linux Server | =8.4 | |
Red Hat Enterprise Linux for SAP Applications for Power, little endian - Extended Update Support | =7.6 | |
Red Hat Enterprise Linux for SAP Applications for Power, little endian - Extended Update Support | =8.1 | |
Red Hat Enterprise Linux for SAP Applications for Power, little endian - Extended Update Support | =8.2 | |
Red Hat Enterprise Linux for SAP Applications for Power, little endian - Extended Update Support | =8.4 | |
Red Hat Enterprise Linux Server | =7.6 | |
Red Hat Enterprise Linux Server | =7.7 | |
Red Hat Enterprise Linux Server | =8.2 | |
Red Hat Enterprise Linux Server | =8.4 | |
Red Hat Enterprise Linux Server Update Services for SAP Solutions | =7.6 | |
Red Hat Enterprise Linux Server Update Services for SAP Solutions | =7.7 | |
Red Hat Enterprise Linux Server Update Services for SAP Solutions | =8.1 | |
Red Hat Enterprise Linux Server Update Services for SAP Solutions | =8.2 | |
Red Hat Enterprise Linux Server Update Services for SAP Solutions | =8.4 | |
Red Hat Enterprise Linux Workstation | =7.0 | |
All of | ||
Red Hat OpenShift API Management | =2.0 | |
Any of | ||
Red Hat Enterprise Linux | =7.0 | |
Red Hat Enterprise Linux | =8.0 | |
All of | ||
Red Hat CodeReady Linux Builder | ||
Any of | ||
Red Hat Enterprise Linux | =8.0 | |
Red Hat Enterprise Linux Server EUS | =8.1 | |
Red Hat Enterprise Linux Server EUS | =8.2 | |
Red Hat Enterprise Linux Server EUS | =8.4 | |
Red Hat Enterprise Linux for Power, little endian | =8.0 | |
Red Hat Enterprise Linux for Power, little endian - Extended Update Support | =8.1 | |
Red Hat Enterprise Linux for Power, little endian - Extended Update Support | =8.2 | |
Red Hat Enterprise Linux for Power, little endian - Extended Update Support | =8.4 | |
All of | ||
Red Hat Virtualization Host EUS | =4.0 | |
Any of | ||
Red Hat Enterprise Linux | =7.0 | |
Red Hat Enterprise Linux | =8.0 | |
Red Hat Software Collections | ||
Red Hat Enterprise Linux Server | =7.0 | |
Red Hat OpenShift API Management | =2.0 | |
Red Hat Enterprise Linux | =7.0 | |
Red Hat Enterprise Linux | =8.0 | |
Red Hat CodeReady Linux Builder | ||
Red Hat Enterprise Linux Server EUS | =8.1 | |
Red Hat Enterprise Linux Server EUS | =8.2 | |
Red Hat Enterprise Linux Server EUS | =8.4 | |
Red Hat Enterprise Linux for Power, little endian | =8.0 | |
Red Hat Enterprise Linux for Power, little endian - Extended Update Support | =8.1 | |
Red Hat Enterprise Linux for Power, little endian - Extended Update Support | =8.2 | |
Red Hat Enterprise Linux for Power, little endian - Extended Update Support | =8.4 | |
Red Hat Virtualization Host EUS | =4.0 | |
debian/linux | 5.10.223-1 5.10.234-1 6.1.129-1 6.1.128-1 6.12.20-1 6.12.21-1 |
This vulnerability can be mitigated by disabling the nested virtualization feature: ``` # modprobe -r kvm_amd # modprobe kvm_amd nested=0 ``` Disabling VLS (Virtual VMLOAD/VMSAVE) is an alternative mitigation: ``` # modprobe kvm_amd vls=0 ```
https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=c7dfa4009965a9b2d7b329ee970eb8da0d32f0bc
Disable nested virtualisation when loading the KVM AMD module: modprobe kvm_amd nested=0
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2021-3656 has been assigned a severity rating of medium, indicating a moderate risk to the affected systems.
To mitigate CVE-2021-3656, users should upgrade to the patched kernel versions provided by Red Hat.
CVE-2021-3656 affects various versions of the Red Hat Enterprise Linux kernel and other related Linux distributions.
Yes, CVE-2021-3656 can potentially be exploited remotely if an attacker gains access to the virtual machine environment.
CVE-2021-3656 involves improper validation of the 'virt_ext' field in KVM's AMD code for nested virtualization.