CVE-2021-22543
Improper memory handling in Linux KVM
Check your servers for CVE-2021-22543
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-22543 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality high, integrity high, availability low: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality high, integrity high, availability low: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.66%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 52.8% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux Kernel |
affected from add6a0cd1c5ba51b201e1361b05a5df817083618, before f8be156be163a052a067306417cd0ff679068c97
Other versions: unaffected
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-22543 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-22543RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-22543Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-22543
trivy image --scanners vuln IMAGE | grep CVE-2021-22543
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- FEDORA-2021-fe826f202e lists.fedoraproject.org · vendor advisory
- FEDORA-2021-95f2f1cfc7 lists.fedoraproject.org · vendor advisory
- https://security.netapp.com/advisory/ntap-20210708-0002/ security.netapp.com
Other references
- https://github.com/google/security-research/security/advisories/GHSA-7wq5-phmq-m584 github.com
- [oss-security] 20210626 Re: CVE-2021-22543 - /dev/kvm LPE openwall.com · mailing list
- [debian-lts-announce] 20211015 [SECURITY] [DLA 2785-1] linux-4.19 security update lists.debian.org · mailing list
- [debian-lts-announce] 20211216 [SECURITY] [DLA 2843-1] linux security update lists.debian.org · mailing list
Source: the record CVE-2021-22543 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse