CVE-2022-48991

Updated on 21 Oct 2024

Severity

7.8 High severity

Details

CVSS score
7.8
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Overview

About vulnerability

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.

Details

Fixes

KernelCare state

Live-patch status from KernelCare for each operating system.

Operating system Status Covered kernels
AlmaLinux 9.2 ESU Ready For Release —
Amazon Linux 1 Will Not Fix —
Amazon Linux 2 Planned —
Amazon Linux 2 5.10 Will Not Fix —
Amazon Linux 2 5.4 Will Not Fix —
Debian 11 Planned —
RHEL 9 Will Not Fix —
Ubuntu 16.04 AWS HWE ESM Will Not Fix —
Ubuntu 16.04 Azure ESM Will Not Fix —
Ubuntu 16.04 GCP ESM Will Not Fix —
Ubuntu 16.04 HWE ESM Will Not Fix —
Ubuntu 18.04 Planned —
Ubuntu 18.04 AWS Planned —
Ubuntu 18.04 AWS Focal Will Not Fix —
Ubuntu 18.04 Azure Focal Will Not Fix —
Ubuntu 18.04 HWE Focal Will Not Fix —
Ubuntu 20.04 Will Not Fix —
Ubuntu 20.04 AWS Will Not Fix —
Ubuntu 22.04 Planned —
Ubuntu 22.04 AWS Planned —
Ubuntu 22.04 Azure Planned —