cve.bz

CVE-2021-22543

8.7 highExploit referenceEPSS 0.7%

High (8.7). EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

8.7 high
CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 53rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-22543 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-22543?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-22543?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-22543 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernel2021-05-18
fedoraproject:fedora33
fedoraproject:fedora34
debian:debian_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9linux4.9.290-1DLA-2843-1
Debian9linux-4.194.19.208-1~deb9u1DLA-2785-1
Debian12, 13, 14linux5.10.46-2DEBIAN-CVE-2021-22543
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2021-22543
Ubuntu18.04:LTSlinux4.15.0-159.167UBUNTU-CVE-2021-22543 USN-5094-1
Ubuntu18.04:LTSlinux-aws4.15.0-1112.119UBUNTU-CVE-2021-22543 USN-5094-1
Ubuntu18.04:LTSlinux-aws-5.45.4.0-1056.59~18.04.1UBUNTU-CVE-2021-22543 USN-5071-1
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1124.137UBUNTU-CVE-2021-22543 USN-5094-1
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1058.60~18.04.1UBUNTU-CVE-2021-22543 USN-5071-1
Ubuntu18.04:LTSlinux-dell300x4.15.0-1028.33UBUNTU-CVE-2021-22543 USN-5094-1
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2021-22543
Ubuntu18.04:LTSlinux-gcp-4.154.15.0-1109.123UBUNTU-CVE-2021-22543 USN-5094-1
Ubuntu18.04:LTSlinux-gcp-5.45.4.0-1052.56~18.04.1UBUNTU-CVE-2021-22543 USN-5071-1
Ubuntu18.04:LTSlinux-gke-5.45.4.0-1052.55~18.04.1UBUNTU-CVE-2021-22543 USN-5071-1
Ubuntu18.04:LTSlinux-gkeop-5.45.4.0-1023.24~18.04.1UBUNTU-CVE-2021-22543 USN-5071-1
42 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::client, enterprise_linux:7::workstationperf, kernel, bpftool and 16 more0:3.10.0-1160.45.1.el7RHSA-2021:3801
Red Hatenterprise_linux:7::computenodeperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 5 more0:3.10.0-1160.45.1.el7RHSA-2021:3801
Red Hatenterprise_linux:7::hypervisorredhat-virtualization-host, redhat-virtualization-host-image-update0:4.3.19-20211013.0.el7_9RHSA-2021:3943
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_11_1, kpatch-patch-3_10_0-1160_15_2, kpatch-patch-3_10_0-1160_11_1-debuginfo and 1 more0:1-9.el7RHSA-2021:3768
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_21_1, kpatch-patch-3_10_0-1160_21_1-debuginfo0:1-7.el7RHSA-2021:3768
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_24_1, kpatch-patch-3_10_0-1160_25_1, kpatch-patch-3_10_0-1160_24_1-debuginfo and 1 more0:1-5.el7RHSA-2021:3768
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_2_1, kpatch-patch-3_10_0-1160_2_2, kpatch-patch-3_10_0-1160_6_1 and 3 more0:1-10.el7RHSA-2021:3768
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_31_1, kpatch-patch-3_10_0-1160_31_1-debuginfo0:1-4.el7RHSA-2021:3768
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_36_2, kpatch-patch-3_10_0-1160_36_2-debuginfo0:1-3.el7RHSA-2021:3768
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_41_1, kpatch-patch-3_10_0-1160_41_1-debuginfo0:1-2.el7RHSA-2021:3768
Red Hatenterprise_linux:7::serverkpatch-patch-3_10_0-1160_42_2, kpatch-patch-3_10_0-1160_42_2-debuginfo0:1-1.el7RHSA-2021:3768
Red Hatenterprise_linux:7::serverperf, kernel, bpftool and 23 more0:3.10.0-1160.45.1.el7RHSA-2021:3801
48 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 3 morekernel-obs-build4.12.14-197.102.1SUSE-SU-2021:3876-1
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 2 morekernel-docs, kernel-syms, kernel-source and 1 more4.12.14-197.102.2SUSE-SU-2021:3876-1
SUSELinux Enterprise High Availability Extension 12 SP4, Linux Enterprise Live Patching 12 SP4kernel-default4.12.14-95.83.2SUSE-SU-2021:3972-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Live Patching 12 SP5, Linux Enterprise Workstation Extension 12 SP5kernel-default4.12.14-122.83.1SUSE-SU-2021:2647-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise Live Patching 15kernel-default4.12.14-150.78.1SUSE-SU-2021:3969-1
SUSELinux Enterprise High Availability Extension 15 SP1, Linux Enterprise Live Patching 15 SP1kernel-default4.12.14-197.102.2SUSE-SU-2021:3876-1
SUSELinux Enterprise High Availability Extension 15 SP2, Linux Enterprise Live Patching 15 SP2, Linux Enterprise Micro 5.0 and 1 morekernel-default5.3.18-24.78.1SUSE-SU-2021:2756-1
SUSELinux Enterprise High Availability Extension 15 SP3, Linux Enterprise Live Patching 15 SP3, Linux Enterprise Module for Legacy 15 SP3kernel-default5.3.18-59.19.1SUSE-SU-2021:2687-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 morekernel-docs, kernel-obs-build4.12.14-150.78.2SUSE-SU-2021:3969-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server for SAP Applications 15kernel-syms, kernel-source, kernel-default and 1 more4.12.14-150.78.1SUSE-SU-2021:3969-1
SUSELinux Enterprise Live Patching 12 SP4kgraft-patch-SLE12-SP4_Update_1613-2.2SUSE-SU-2021:2746-1
SUSELinux Enterprise Live Patching 12 SP4kgraft-patch-SLE12-SP4_Update_1710-2.2SUSE-SU-2021:2746-1
71 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.2kernel-default-base5.3.18-lp152.87.1.lp152.8.40.1openSUSE-SU-2021:1142-1
openSUSELeap 15.2kernel-docs, kernel-syms, kernel-debug and 6 more5.3.18-lp152.87.1openSUSE-SU-2021:1142-1
openSUSELeap 15.3dtb-aarch64, kernel-64kb, kernel-docs and 9 more5.3.18-59.19.1openSUSE-SU-2021:2687-1
openSUSELeap 15.3kernel-azure, kernel-syms-azure, kernel-source-azure5.3.18-38.17.1openSUSE-SU-2021:2645-1
openSUSELeap 15.3kernel-debug, kernel-default, kernel-vanilla and 2 more4.12.14-197.102.2openSUSE-SU-2021:3876-1
openSUSELeap 15.3kernel-default-base5.3.18-59.19.1.18.10.1openSUSE-SU-2021:2687-1
AlmaLinux8kernel-tools-libs-devel4.18.0-305.12.1.el8_4ALSA-2021:3057
Rocky Linux8kernel0:4.18.0-305.12.1.el8_4RLSA-2021:3057
Rocky Linux8kernel-rt0:4.18.0-305.12.1.rt7.84.el8_4RLSA-2021:3088

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Both Red Hat Enterprise Linux 7 and Red Hat Enterprise Linux 8 leverage udev to set the proper permissions (ugo=rw) of the `/dev/kvm` device, making it accessible to all users. It is worth noting that while the KVM rule is part of the main udev package in Red Hat Enterprise Linux 8, the same rule is shipped with the `qemu-kvm` package in Red Hat Enterprise Linux 7. In other words, Red Hat Enterprise Linux 7 does not expose `/dev/kvm` to unprivileged users by default, as long as the `qemu-kvm` package is not installed.

Red Hat's mitigation

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update as soon as possible.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6 Extended Lifecycle Supportkernel-0:2.6.32-754.48.1.el6Fixed 2022-07-19RHSA-2022:5640
Red Hat Enterprise Linux 7kernel-rt-0:3.10.0-1160.45.1.rt56.1185.el7Fixed 2021-10-12RHSA-2021:3802
Red Hat Enterprise Linux 7kpatch-patchFixed 2021-10-12RHSA-2021:3768
Red Hat Enterprise Linux 7kernel-0:3.10.0-1160.45.1.el7Fixed 2021-10-12RHSA-2021:3801
Red Hat Enterprise Linux 7.2 Advanced Update Supportkernel-0:3.10.0-327.101.1.el7Fixed 2021-10-12RHSA-2021:3767
Red Hat Enterprise Linux 7.3 Advanced Update Supportkernel-0:3.10.0-514.93.1.el7Fixed 2021-10-12RHSA-2021:3766
Red Hat Enterprise Linux 7.4 Advanced Update Supportkernel-0:3.10.0-693.94.1.el7Fixed 2021-10-05RHSA-2021:3725
Red Hat Enterprise Linux 7.6 Advanced Update Supportkernel-0:3.10.0-957.84.1.el7Fixed 2021-10-12RHSA-2021:3812
Red Hat Enterprise Linux 7.6 Telco Extended Update Supportkernel-0:3.10.0-957.84.1.el7Fixed 2021-10-12RHSA-2021:3812
Red Hat Enterprise Linux 7.6 Update Services for SAP Solutionskernel-0:3.10.0-957.84.1.el7Fixed 2021-10-12RHSA-2021:3812
Red Hat Enterprise Linux 7.6 Update Services for SAP Solutionskpatch-patchFixed 2021-10-12RHSA-2021:3814
Red Hat Enterprise Linux 7.7 Advanced Update Supportkernel-0:3.10.0-1062.59.1.el7Fixed 2021-10-26RHSA-2021:3987
Red Hat Enterprise Linux 7.7 Telco Extended Update Supportkernel-0:3.10.0-1062.59.1.el7Fixed 2021-10-26RHSA-2021:3987
Red Hat Enterprise Linux 7.7 Update Services for SAP Solutionskernel-0:3.10.0-1062.59.1.el7Fixed 2021-10-26RHSA-2021:3987
Red Hat Enterprise Linux 7.7 Update Services for SAP Solutionskpatch-patchFixed 2021-10-26RHSA-2021:4000
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-305.12.1.rt7.84.el8_4Fixed 2021-08-10RHSA-2021:3088
Red Hat Enterprise Linux 8kpatch-patchFixed 2021-08-10RHSA-2021:3044
Red Hat Enterprise Linux 8kernel-0:4.18.0-305.12.1.el8_4Fixed 2021-08-10RHSA-2021:3057
Red Hat Enterprise Linux 7kernel-altAffected
Red Hat Enterprise Linux 9kernelNot affected
7 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-22543.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON