mm/khugepaged: invoke MMU notifiers in shmem/file collapse paths (Linux Linux)

CVE-2022-48991
HIGH 8.8

En bref

Source
NVD
EPSS
EPSS 0.25 % · centile 17 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

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.

Faiblesses (CWE)

  • CWE-416 — Utilisation après libération

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 8.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HLinux
CVSS 3.1HIGH 8.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected f3f0e1d2150b2b99da2cbdfaad000089efe9bf30 < 275c626c131cfe141beeb6c575e31fa53d32da19 ; affected f3f0e1d2150b2b99da2cbdfaad000089efe9bf30 < c23105673228c349739e958fa33955ed8faddcaf ; affected f3f0e1d2150b2b99da2cbdfaad000089efe9bf30 < ff2a1a6f869650aec99e9d070b5ab625bfbc5bc3 ; affected f3f0e1d2150b2b99da2cbdfaad000089efe9bf30 < 5ffc2a75534d9d74d49760f983f8eb675fa63d69 ; affected f3f0e1d2150b2b99da2cbdfaad000089efe9bf30 < 7f445ca2e0e59c7971d0b7b853465e50844ab596 ; affected f3f0e1d2150b2b99da2cbdfaad000089efe9bf30 < 1a3f8c6cd29d9078cc81b29d39d0e9ae1d6a03c3
Linux · Linuxaffected 4.8 ; unaffected 0 < 4.8 ; unaffected 4.9.337 ≤ 4.9.* ; unaffected 4.14.303 ≤ 4.14.* ; unaffected 4.19.270 ≤ 4.19.* ; unaffected 5.4.227 ≤ 5.4.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD