7.8
HIGH
CVE-2022-48991
Linux Kernel - KVM MMU Notifier Use-After-Free Vulnerability
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.

INFO

Published Date :

Oct. 21, 2024, 8:15 p.m.

Last Modified :

Nov. 7, 2024, 7:36 p.m.

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
Affected Products

The following products are affected by CVE-2022-48991 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-48991 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-48991 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Nov. 07, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://git.kernel.org/stable/c/1a3f8c6cd29d9078cc81b29d39d0e9ae1d6a03c3 No Types Assigned https://git.kernel.org/stable/c/1a3f8c6cd29d9078cc81b29d39d0e9ae1d6a03c3 Patch
    Changed Reference Type https://git.kernel.org/stable/c/275c626c131cfe141beeb6c575e31fa53d32da19 No Types Assigned https://git.kernel.org/stable/c/275c626c131cfe141beeb6c575e31fa53d32da19 Patch
    Changed Reference Type https://git.kernel.org/stable/c/5450535901d89a5dcca5fbbc59a24fe89caeb465 No Types Assigned https://git.kernel.org/stable/c/5450535901d89a5dcca5fbbc59a24fe89caeb465 Patch
    Changed Reference Type https://git.kernel.org/stable/c/5ffc2a75534d9d74d49760f983f8eb675fa63d69 No Types Assigned https://git.kernel.org/stable/c/5ffc2a75534d9d74d49760f983f8eb675fa63d69 Patch
    Changed Reference Type https://git.kernel.org/stable/c/7f445ca2e0e59c7971d0b7b853465e50844ab596 No Types Assigned https://git.kernel.org/stable/c/7f445ca2e0e59c7971d0b7b853465e50844ab596 Patch
    Changed Reference Type https://git.kernel.org/stable/c/c23105673228c349739e958fa33955ed8faddcaf No Types Assigned https://git.kernel.org/stable/c/c23105673228c349739e958fa33955ed8faddcaf Patch
    Changed Reference Type https://git.kernel.org/stable/c/f268f6cf875f3220afc77bdd0bf1bb136eb54db9 No Types Assigned https://git.kernel.org/stable/c/f268f6cf875f3220afc77bdd0bf1bb136eb54db9 Patch
    Changed Reference Type https://git.kernel.org/stable/c/ff2a1a6f869650aec99e9d070b5ab625bfbc5bc3 No Types Assigned https://git.kernel.org/stable/c/ff2a1a6f869650aec99e9d070b5ab625bfbc5bc3 Patch
    Added CWE NIST CWE-416
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.8 up to (excluding) 4.9.337 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.10 up to (excluding) 4.14.303 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.15 up to (excluding) 4.19.270 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 4.20 up to (excluding) 5.4.227 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.5 up to (excluding) 5.10.159 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.83 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.0.13 *cpe:2.3:o:linux:linux_kernel:6.1:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.1:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.1:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.1:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.1:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.1:rc6:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.1:rc7:*:*:*:*:*:*
  • CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Oct. 21, 2024

    Action Type Old Value New Value
    Added 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.
    Added Reference kernel.org https://git.kernel.org/stable/c/275c626c131cfe141beeb6c575e31fa53d32da19 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/c23105673228c349739e958fa33955ed8faddcaf [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/ff2a1a6f869650aec99e9d070b5ab625bfbc5bc3 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/5ffc2a75534d9d74d49760f983f8eb675fa63d69 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/7f445ca2e0e59c7971d0b7b853465e50844ab596 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/1a3f8c6cd29d9078cc81b29d39d0e9ae1d6a03c3 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/5450535901d89a5dcca5fbbc59a24fe89caeb465 [No types assigned]
    Added Reference kernel.org https://git.kernel.org/stable/c/f268f6cf875f3220afc77bdd0bf1bb136eb54db9 [No types assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-48991 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-48991 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability