CVE-2021-22543 Improper memory handling in Linux KVM

High 8.7 Published Updated

Improper memory handling in Linux KVM allows local attackers to read/write random memory pages, leading to privilege escalation.

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-22543?

CVE-2021-22543 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 26 May 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

An issue was discovered in Linux: KVM through Improper handling of VM_IO|VM_PFNMAP vmas in KVM can bypass RO checks and can lead to pages being freed while still accessible by the VMM and guest. This allows users with the ability to start and control a VM to read/write random pages of memory and can result in local privilege escalation.

Weakness: CWE-119

Which versions are affected by CVE-2021-22543?

It affects 13 products.

Linux distribution packages (21)
redhat-virtualization-host Red Hat:enterprise_linux:7::hypervisorAll versions0:4.3.19-20211013.0.el7_9
redhat-virtualization-host-image-update Red Hat:enterprise_linux:7::hypervisorAll versions0:4.3.19-20211013.0.el7_9
kernel Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-abi-whitelists Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-debug Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-debug-debuginfo Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-debug-devel Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-debuginfo Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-debuginfo-common-i686 Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-debuginfo-common-s390x Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-debuginfo-common-x86_64 Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-devel Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-doc Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-firmware Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-kdump Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-kdump-debuginfo Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
kernel-kdump-devel Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
perf Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
perf-debuginfo Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
python-perf Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6
python-perf-debuginfo Red Hat:rhel_els:6All versions0:2.6.32-754.48.1.el6

Products include Debian Debian Linux, Fedoraproject Fedora, Linux kernel, Netapp Cloud Backup, Netapp H300e Firmware, Netapp H300s Firmware and 7 more.

How do I fix CVE-2021-22543?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-22543 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as CLSA-2022-1659017902, CLSA-2022-1659018147, CLSA-2022-1669850228, CLSA-2022-1669919330, DEBIAN-CVE-2021-22543, RHSA-2021:3943 and 2 more.

Is CVE-2021-22543 in your software?

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

Check your SBOMs for free