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

CVE-2022-49080

In the Linux kernel, the following vulnerability has been resolved: mm/mempolicy: fix mpol_new leak in…

Publiée le 26 févr. 2025 · modifiée le 17 juin 2026 · Sources : NVD, EPSS (FIRST)

Faible 26/100

Résumé

In the Linux kernel, the following vulnerability has been resolved: mm/mempolicy: fix mpol_new leak in shared_policy_replace If mpol_new is allocated but not used in restart loop, mpol_new will be freed via mpol_put before returning to the caller. But refcnt is not initialized yet, so mpol_put could not do the right things and might leak the unused mpol_new. This would happen if mempolicy was updated on the shared shmem file while the sp->lock has been dropped during the memory allocation. This issue could be triggered easily with the below code snippet if there are many processes doing the below work at the same time: shmid = shmget((key_t)5566, 1024 * PAGE_SIZE, 0666|IPC_CREAT); shm = shmat(shmid, 0, 0); loop many times { mbind(shm, 1024 * PAGE_SIZE, MPOL_LOCAL, mask, maxnode, 0); mbind(shm + 128 * PAGE_SIZE, 128 * PAGE_SIZE, MPOL_DEFAULT, mask, maxnode, 0); }

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

Produits et versions affectés

Linux (10 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux kernel de 3.8.1 (inclus) à 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 3.8 — 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
NVD
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-401 · Autre (CWE-401)

Comment sont obtenues et calculées ces données