CVE-2021-22543: Improper memory handling in Linux KVM
A flaw was found in the Linux kernel’s KVM implementation, where improper handing of the VMIO|VMPFNMAP VMAs in KVM bypasses RO checks and leads to pages being freed while still accessible by the VMM and guest. This flaw allows users who can start and control a VM to read/write random pages of memory, resulting in local privilege escalation. The highest threat from this vulnerability is to confidentiality, integrity, and system availability.
Other sources
An issue was discovered in Linux: KVM through Improper handling of VMIO|VMPFNMAP 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.
An issue was discovered in the Linux: KVM through Improper handling of VMIO|VMPFNMAP 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.
References:
https://github.com/google/security-research/security/advisories/GHSA-7wq5-phmq-m584 http://www.openwall.com/lists/oss-security/2021/05/26/3 http://www.openwall.com/lists/oss-security/2021/05/26/4 http://www.openwall.com/lists/oss-security/2021/05/26/5
— Red Hat
Linux Kernel could allow a local authenticated attacker to gain elevated privileges on the system, caused by improper handling of VMIO|VMPFNMAP vmas in KVM. By sending a specially-crafted request, an authenticated attacker could exploit this vulnerability to gain elevated privileges to start and control a VM to read/write random pages of memory.
— IBM
Affected Software
Remediation
Information
Event History
Parent advisories
This vulnerability appears in the following advisories.
- RHSA-2022:5640
- RHSA-2021:3802
- RHSA-2021:3768
- RHSA-2021:3801
- RHSA-2021:3767
- RHSA-2021:3766
- RHSA-2021:3725
- RHSA-2021:3812
- RHSA-2021:3814
- RHSA-2021:3987
- RHSA-2021:4000
- RHSA-2021:3088
- RHSA-2021:3044
- RHSA-2021:3057
- RHSA-2021:3173
- RHSA-2021:3181
- RHSA-2021:3375
- RHSA-2021:3363
- RHSA-2021:3380
- RHSA-2021:3943
- RHSA-2021:3235
- IBM-6493729
Frequently Asked Questions
What is the severity of CVE-2021-22543?
CVE-2021-22543 has been assigned a high severity rating due to its potential impact on system integrity and confidentiality.
How do I fix CVE-2021-22543?
To fix CVE-2021-22543, upgrade to the latest kernel versions as specified by the vendor for your system.
Which systems are affected by CVE-2021-22543?
CVE-2021-22543 affects multiple versions of the Linux kernel, particularly those from Red Hat and other distributions such as Fedora and Debian.
What can be exploited in CVE-2021-22543?
CVE-2021-22543 can be exploited by users who control a virtual machine, allowing them to read or write memory that should be restricted.
Is there a patch available for CVE-2021-22543?
Yes, patches are available and users should apply them based on the specific kernel version they are using.