CVE-2021-3653 Privilege escalation in kernel

High 8.8 Published Updated

A malicious L1 guest can escape to the host via improper validation in KVM's AMD SVM nested virtualization, enabling host code execution or data leaks.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3653?

CVE-2021-3653 is a high-severity vulnerability in Debian Debian Linux, published on 29 Sep 2021. It can only be exploited from the same machine or local network, with no action from the victim.

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 "int_ctl" field, this issue could allow a malicious L1 to enable AVIC support (Advanced Virtual Interrupt Controller) 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. This flaw affects Linux kernel versions prior to 5.14-rc7.

Weakness: CWE-862

Which versions are affected by CVE-2021-3653?

It affects 3 products.

Linux distribution packages (40)
kernel-tools-libs-devel AlmaLinux:8All versions4.18.0-305.19.1.el8_4
bpftool Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
bpftool-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-abi-stablelists Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-core Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-cross-headers Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-debug Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-debug-core Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-debug-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-debug-devel Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-debug-modules Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-debug-modules-extra Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-debuginfo-common-aarch64 Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-debuginfo-common-ppc64le Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-debuginfo-common-s390x Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-debuginfo-common-x86_64 Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-devel Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-doc Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-modules Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-modules-extra Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-tools Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-tools-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-tools-libs Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-zfcpdump Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-zfcpdump-core Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-zfcpdump-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-zfcpdump-devel Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-zfcpdump-modules Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
kernel-zfcpdump-modules-extra Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
perf Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
perf-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
python3-perf Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
python3-perf-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:4.18.0-305.19.1.el8_4
bpftool-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:4.18.0-305.19.1.el8_4
kernel-debug-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:4.18.0-305.19.1.el8_4
kernel-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:4.18.0-305.19.1.el8_4
kernel-debuginfo-common-aarch64 Red Hat:enterprise_linux:8::crbAll versions0:4.18.0-305.19.1.el8_4
kernel-debuginfo-common-ppc64le Red Hat:enterprise_linux:8::crbAll versions0:4.18.0-305.19.1.el8_4

Products include Debian Debian Linux, Linux kernel, Redhat Enterprise Linux.

How do I fix CVE-2021-3653?

Apply the vendor's patch.

Is CVE-2021-3653 being exploited?

There is no known exploitation of CVE-2021-3653 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALSA-2021:3548, AZL-6575, DEBIAN-CVE-2021-3653, GHSA-g58x-c6rr-7fp2, RHSA-2021:3547, RHSA-2021:3548 and 4 more.

Is CVE-2021-3653 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free