Vulnerability · Published Mar 4, 2022 · Assigned by redhat
CVE-2021-3656
High 8.8
In plain English
A high-severity missing authorization in KVM. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | kernel-tools-libs-devel | 4.18.0-305.25.1.el8_4 | ALSA-2021:4056 |
| Debian:12 | linux | 5.14.6-1 | DEBIAN-CVE-2021-3656 |
| Debian:13 | linux | 5.14.6-1 | DEBIAN-CVE-2021-3656 |
| Debian:14 | linux | 5.14.6-1 | DEBIAN-CVE-2021-3656 |
| Rocky Linux:8 | kernel | 0:4.18.0-305.25.1.el8_4 | RLSA-2021:4056 |
| Rocky Linux:8 | kernel-rt | 0:4.18.0-305.25.1.rt7.97.el8_4 | RLSA-2021:4088 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2021-3656 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2021-3656 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2021-3656 |
Affected products (as reported)
Weakness: CWE-862
References
- https://www.openwall.com/lists/oss-security/2021/08/16/1 x_refsource_MISC
- https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=c7dfa4009965a9b2d7b329ee970eb8da0d32f0bc x_refsource_MISC
- https://github.com/torvalds/linux/commit/c7dfa4009965a9b2d7b329ee970eb8da0d32f0bc x_refsource_MISC
- https://bugzilla.redhat.com/show_bug.cgi?id=1983988 x_refsource_MISC