Bug 1983988 (CVE-2021-3656) - CVE-2021-3656 kernel: SVM nested virtualization issue in KVM (VMLOAD/VMSAVE)
Summary: CVE-2021-3656 kernel: SVM nested virtualization issue in KVM (VMLOAD/VMSAVE)
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-3656
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1985423 1985424 1985425 1985426 1985427 1985428 1985429 1985430 1985431 1985432 1985433 1985434 1985435 1985436 1985437 1995452
Blocks: 1983680 1986799
TreeView+ depends on / blocked
 
Reported: 2021-07-20 11:12 UTC by Mauro Matteo Cascella
Modified: 2022-04-17 21:31 UTC (History)
47 users (show)

Fixed In Version: kernel 5.14-rc7
Doc Type: If docs needed, set a value
Doc Text:
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.
Clone Of:
Environment:
Last Closed: 2021-09-28 18:21:06 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:3847 0 None None None 2021-10-13 14:32:46 UTC
Red Hat Product Errata RHBA-2021:3862 0 None None None 2021-10-14 13:47:40 UTC
Red Hat Product Errata RHBA-2021:3867 0 None None None 2021-10-14 14:14:45 UTC
Red Hat Product Errata RHBA-2021:3898 0 None None None 2021-10-19 01:16:11 UTC
Red Hat Product Errata RHBA-2021:3911 0 None None None 2021-10-19 09:11:15 UTC
Red Hat Product Errata RHSA-2021:3676 0 None None None 2021-09-28 14:35:04 UTC
Red Hat Product Errata RHSA-2021:3801 0 None None None 2021-10-12 15:29:14 UTC
Red Hat Product Errata RHSA-2021:3802 0 None None None 2021-10-12 15:29:31 UTC
Red Hat Product Errata RHSA-2021:3812 0 None None None 2021-10-12 15:04:59 UTC
Red Hat Product Errata RHSA-2021:3904 0 None None None 2021-10-19 07:03:09 UTC
Red Hat Product Errata RHSA-2021:3909 0 None None None 2021-10-19 06:51:13 UTC
Red Hat Product Errata RHSA-2021:3987 0 None None None 2021-10-26 07:38:12 UTC
Red Hat Product Errata RHSA-2021:4056 0 None None None 2021-11-02 08:43:01 UTC
Red Hat Product Errata RHSA-2021:4088 0 None None None 2021-11-02 09:52:30 UTC

Description Mauro Matteo Cascella 2021-07-20 11:12:50 UTC
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.

Upstream fix:
https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=c7dfa4009965a9b2d7b329ee970eb8da0d32f0bc

Comment 5 Mauro Matteo Cascella 2021-08-02 14:03:07 UTC
If L1 disables VMLOAD/VMSAVE intercepts, and doesn't enable Virtual VMLOAD/VMSAVE (currently not supported for the nested hypervisor), then VMLOAD/VMSAVE must operate on the L1 physical memory, which is only possible by making L0 intercept these instructions. Failure to do so allowed the nested guest to run VMLOAD/VMSAVE unintercepted, and thus read/write portions of the host physical memory.

Comment 6 Mauro Matteo Cascella 2021-08-02 15:12:41 UTC
This bug was introduced in kernel version 4.13 while enabling the Virtual VMLOAD/VMSAVE feature:
https://github.com/torvalds/linux/commit/89c8a4984fc9

Comment 7 Mauro Matteo Cascella 2021-08-19 07:24:17 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 1995452]

Comment 14 errata-xmlrpc 2021-09-28 14:35:01 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.1 Extended Update Support

Via RHSA-2021:3676 https://access.redhat.com/errata/RHSA-2021:3676

Comment 15 Product Security DevOps Team 2021-09-28 18:21:06 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-3656

Comment 16 errata-xmlrpc 2021-10-12 15:04:56 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.6 Advanced Update Support
  Red Hat Enterprise Linux 7.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 7.6 Telco Extended Update Support

Via RHSA-2021:3812 https://access.redhat.com/errata/RHSA-2021:3812

Comment 17 errata-xmlrpc 2021-10-12 15:29:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2021:3801 https://access.redhat.com/errata/RHSA-2021:3801

Comment 18 errata-xmlrpc 2021-10-12 15:29:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2021:3802 https://access.redhat.com/errata/RHSA-2021:3802

Comment 20 errata-xmlrpc 2021-10-19 06:51:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Extended Update Support

Via RHSA-2021:3909 https://access.redhat.com/errata/RHSA-2021:3909

Comment 21 errata-xmlrpc 2021-10-19 07:03:06 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Extended Update Support

Via RHSA-2021:3904 https://access.redhat.com/errata/RHSA-2021:3904

Comment 22 errata-xmlrpc 2021-10-26 07:38:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7.7 Advanced Update Support
  Red Hat Enterprise Linux 7.7 Update Services for SAP Solutions
  Red Hat Enterprise Linux 7.7 Telco Extended Update Support

Via RHSA-2021:3987 https://access.redhat.com/errata/RHSA-2021:3987

Comment 23 errata-xmlrpc 2021-11-02 08:42:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4056 https://access.redhat.com/errata/RHSA-2021:4056

Comment 24 errata-xmlrpc 2021-11-02 09:52:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4088 https://access.redhat.com/errata/RHSA-2021:4088


Note You need to log in before you can comment on or make changes to this bug.