CVE-2022-48991CWE-416

CVE-2022-48991

High · published October 22, 2024

CVSS v3.1
8.8
EPSS
0%
Percentile
15.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00251 · 15.7th percentile
Weakness
CWE-416 · Use After Free
Published
2024-10-22T00:15Z
Affected products (14)
ProductVersionsFixed in
linux/linux_kernel≥ 4.8, < 4.9.3374.9.337
linux/linux_kernel≥ 4.10, < 4.14.3034.14.303
linux/linux_kernel≥ 4.15, < 4.19.2704.19.270
linux/linux_kernel≥ 4.20, < 5.4.2275.4.227
linux/linux_kernel≥ 5.5, < 5.10.1595.10.159
linux/linux_kernel≥ 5.11, < 5.15.835.15.83
linux/linux_kernel≥ 5.16, < 6.0.136.0.13
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (8)
EPSS history
Timeline
  • 21 OCT 20:06Z
    mm/khugepaged: invoke MMU notifiers in shmem/file collapse paths
    cvelistv5