# CVE-2022-48991: mm/khugepaged: invoke MMU notifiers in shmem/file collapse paths

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-10-21T20:06:08.312Z
- **Modified:** 2026-08-05T08:53:20.576Z

## Who should check

- Anyone running Linux \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 275c626c131cfe141beeb6c575e31fa53d32da19; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< c23105673228c349739e958fa33955ed8faddcaf; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< ff2a1a6f869650aec99e9d070b5ab625bfbc5bc3; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 5ffc2a75534d9d74d49760f983f8eb675fa63d69; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 7f445ca2e0e59c7971d0b7b853465e50844ab596; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 1a3f8c6cd29d9078cc81b29d39d0e9ae1d6a03c3; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 5450535901d89a5dcca5fbbc59a24fe89caeb465; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< f268f6cf875f3220afc77bdd0bf1bb136eb54db9
- Anyone running Linux 4.8

## 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.

## Affected and fixed versions

- Linux: \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 275c626c131cfe141beeb6c575e31fa53d32da19; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< c23105673228c349739e958fa33955ed8faddcaf; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< ff2a1a6f869650aec99e9d070b5ab625bfbc5bc3; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 5ffc2a75534d9d74d49760f983f8eb675fa63d69; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 7f445ca2e0e59c7971d0b7b853465e50844ab596; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 1a3f8c6cd29d9078cc81b29d39d0e9ae1d6a03c3; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 5450535901d89a5dcca5fbbc59a24fe89caeb465; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< f268f6cf875f3220afc77bdd0bf1bb136eb54db9 (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48991. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48991.md
Affected: Linux >= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, < 275c626c131cfe141beeb6c575e31fa53d32da19; >= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, < c23105673228c349739e958fa33955ed8faddcaf; >= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, < ff2a1a6f869650aec99e9d070b5ab625bfbc5bc3; >= f3f0e1d2150b2b99da2cbdf…
Fixed in: Linux 275c626c131cfe141beeb6c575e31fa53d32da19, Linux 5ffc2a75534d9d74d49760f983f8eb675fa63d69, Linux 7f445ca2e0e59c7971d0b7b853465e50844ab596, Linux 1a3f8c6cd29d9078cc81b29d39d0e9ae1d6a03c3, Linux 5450535901d89a5dcca5fbbc59a24fe89caeb465

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-48991 being exploited?

There is no confirmed exploitation: CVE-2022-48991 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-48991?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-48991?

Linux \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 275c626c131cfe141beeb6c575e31fa53d32da19; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< c23105673228c349739e958fa33955ed8faddcaf; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< ff2a1a6f869650aec99e9d070b5ab625bfbc5bc3; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 5ffc2a75534d9d74d49760f983f8eb675fa63d69; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 7f445ca2e0e59c7971d0b7b853465e50844ab596; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 1a3f8c6cd29d9078cc81b29d39d0e9ae1d6a03c3; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< 5450535901d89a5dcca5fbbc59a24fe89caeb465; \>= f3f0e1d2150b2b99da2cbdfaad000089efe9bf30, \< f268f6cf875f3220afc77bdd0bf1bb136eb54db9; Linux 4.8.

### Is there a fix for CVE-2022-48991?

Yes. Fixed in Linux 275c626c131cfe141beeb6c575e31fa53d32da19, Linux 5ffc2a75534d9d74d49760f983f8eb675fa63d69, Linux 7f445ca2e0e59c7971d0b7b853465e50844ab596, Linux 1a3f8c6cd29d9078cc81b29d39d0e9ae1d6a03c3, Linux 5450535901d89a5dcca5fbbc59a24fe89caeb465. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-48991?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/275c626c131cfe141beeb6c575e31fa53d32da19>
- patch: <https://git.kernel.org/stable/c/c23105673228c349739e958fa33955ed8faddcaf>
- patch: <https://git.kernel.org/stable/c/ff2a1a6f869650aec99e9d070b5ab625bfbc5bc3>
- patch: <https://git.kernel.org/stable/c/5ffc2a75534d9d74d49760f983f8eb675fa63d69>
- patch: <https://git.kernel.org/stable/c/7f445ca2e0e59c7971d0b7b853465e50844ab596>
- patch: <https://git.kernel.org/stable/c/1a3f8c6cd29d9078cc81b29d39d0e9ae1d6a03c3>
- patch: <https://git.kernel.org/stable/c/5450535901d89a5dcca5fbbc59a24fe89caeb465>
- patch: <https://git.kernel.org/stable/c/f268f6cf875f3220afc77bdd0bf1bb136eb54db9>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48991>

HTML: <https://flawdb.com/CVE-2022-48991> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48991>
