1. Accueil
  2. Vulnérabilités
  3. CVE-2022-49077

CVE-2022-49077

mmmremap.c: avoid pointless invalidate_range_start/end on mremap(old_size=0)

Publiée le 26 févr. 2025 · modifiée le 5 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 27/100

Résumé

In the Linux kernel, the following vulnerability has been resolved: mmmremap.c: avoid pointless invalidate_range_start/end on mremap(old_size=0) If an mremap() syscall with old_size=0 ends up in move_page_tables(), it will call invalidate_range_start()/invalidate_range_end() unnecessarily, i.e. with an empty range. This causes a WARN in KVM's mmu_notifier. In the past, empty ranges have been diagnosed to be off-by-one bugs, hence the WARNing. Given the low (so far) number of unique reports, the benefits of detecting more buggy callers seem to outweigh the cost of having to fix cases such as this one, where userspace is doing something silly. In this particular case, an early return from move_page_tables() is enough to fix the issue.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Linux (10 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux 3.2 — CNA (éditeur ou attributeur)
Linux kernel avant 4.9.311 (exclu) — NVD
Linux kernel de 4.10 (inclus) à 4.14.276 (exclu) — NVD
Linux kernel de 4.15 (inclus) à 4.19.238 (exclu) — NVD
Linux kernel de 4.20 (inclus) à 5.4.189 (exclu) — NVD
Linux kernel de 5.5 (inclus) à 5.10.111 (exclu) — NVD
Linux kernel de 5.11 (inclus) à 5.15.34 (exclu) — NVD
Linux kernel de 5.16 (inclus) à 5.16.20 (exclu) — NVD
Linux kernel de 5.17 (inclus) à 5.17.3 (exclu) — NVD
Linux kernel 5.18 — NVD

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
NVD
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-193 · Autre (CWE-193)

Comment sont obtenues et calculées ces données