CVE-2022-48991
mm/khugepaged: invoke MMU notifiers in shmem/file collapse paths
Check your servers for CVE-2022-48991
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-2022-48991 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
mm/khugepaged: invoke MMU notifiers in shmem/file collapse paths
Any codepath that zaps page table entries must invoke MMU notifiers to ensure that secondary MMUs (like KVM) don't keep accessing pages which aren't mapped anymore. Secondary MMUs don't hold their own references to pages that are mirrored over, so failing to notify them can lead to page use-after-free.
I'm marking this as addressing an issue introduced in commit f3f0e1d2150b ("khugepaged: add support of collapse for tmpfs/shmem pages"), but most of the security impact of this only came in commit 27e1f8273113 ("khugepaged: enable collapse pmd for pte-mapped THP"), which actually omitted flushes for the removal of present PTEs, not just for the removal of empty page tables.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.6% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 22 Oct 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, before 275c626c131cfe141beeb6c575e31fa53d32da19 affected from f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, before c23105673228c349739e958fa33955ed8faddcaf affected from f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, before ff2a1a6f869650aec99e9d070b5ab625bfbc5bc3 affected from f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, before 5ffc2a75534d9d74d49760f983f8eb675fa63d69 affected from f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, before 7f445ca2e0e59c7971d0b7b853465e50844ab596 affected from f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, before 1a3f8c6cd29d9078cc81b29d39d0e9ae1d6a03c3 affected from f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, before 5450535901d89a5dcca5fbbc59a24fe89caeb465 affected from f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, before f268f6cf875f3220afc77bdd0bf1bb136eb54db9
Other versions: unaffected
|
| Linux |
affected 4.8 unaffected before 4.8 unaffected from 4.9.337 up to and including 4.9.* unaffected from 4.14.303 up to and including 4.14.* unaffected from 4.19.270 up to and including 4.19.* unaffected from 5.4.227 up to and including 5.4.* unaffected from 5.10.159 up to and including 5.10.* unaffected from 5.15.83 up to and including 5.15.* unaffected from 6.0.13 up to and including 6.0.* unaffected 6.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-48991 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-48991
With 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-2022-48991
trivy image --scanners vuln IMAGE | grep CVE-2022-48991
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
Other references
- https://git.kernel.org/stable/c/275c626c131cfe141beeb6c575e31fa53d32da19 git.kernel.org
- https://git.kernel.org/stable/c/c23105673228c349739e958fa33955ed8faddcaf git.kernel.org
- https://git.kernel.org/stable/c/ff2a1a6f869650aec99e9d070b5ab625bfbc5bc3 git.kernel.org
- https://git.kernel.org/stable/c/5ffc2a75534d9d74d49760f983f8eb675fa63d69 git.kernel.org
- https://git.kernel.org/stable/c/7f445ca2e0e59c7971d0b7b853465e50844ab596 git.kernel.org
- https://git.kernel.org/stable/c/1a3f8c6cd29d9078cc81b29d39d0e9ae1d6a03c3 git.kernel.org
- https://git.kernel.org/stable/c/5450535901d89a5dcca5fbbc59a24fe89caeb465 git.kernel.org
- https://git.kernel.org/stable/c/f268f6cf875f3220afc77bdd0bf1bb136eb54db9 git.kernel.org
Source: the record CVE-2022-48991 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse