1. Accueil
  2. Vulnérabilités
  3. CVE-2025-22005

CVE-2025-22005

ipv6: Fix memleak of nhc_pcpu_rth_output in fib_check_nh_v6_gw().

Publiée le 3 avr. 2025 · modifiée le 10 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Faible 26/100

Résumé

In the Linux kernel, the following vulnerability has been resolved: ipv6: Fix memleak of nhc_pcpu_rth_output in fib_check_nh_v6_gw(). fib_check_nh_v6_gw() expects that fib6_nh_init() cleans up everything when it fails. Commit 7dd73168e273 ("ipv6: Always allocate pcpu memory in a fib6_nh") moved fib_nh_common_init() before alloc_percpu_gfp() within fib6_nh_init() but forgot to add cleanup for fib6_nh->nh_common.nhc_pcpu_rth_output in case it fails to allocate fib6_nh->rt6i_pcpu, resulting in memleak. Let's call fib_nh_common_release() and clear nhc_pcpu_rth_output in the error path. Note that we can remove the fib6_nh_release() call in nh_create_ipv6() later in net-next.git.

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

Produits et versions affectés

Linux (8 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux 5.3 — CNA (éditeur ou attributeur)
Linux kernel de 5.3 (inclus) à 5.4.292 (exclu) — NVD
Linux kernel de 5.5 (inclus) à 5.10.236 (exclu) — NVD
Linux kernel de 5.16 (inclus) à 6.1.132 (exclu) — NVD
Linux kernel de 6.2 (inclus) à 6.6.85 (exclu) — NVD
Linux kernel de 6.7 (inclus) à 6.12.21 (exclu) — NVD
Linux kernel de 6.13 (inclus) à 6.13.9 (exclu) — NVD
Linux kernel 6.14 — 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)
  2. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1298)

Avis CERT-FR

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-401 · Autre (CWE-401)

Comment sont obtenues et calculées ces données