1. Accueil
  2. Vulnérabilités
  3. CVE-2026-64525

CVE-2026-64525

xfrm: move policy_bydst RCU sync from per-netns .exit to .pre_exit

Publiée le 25 juil. 2026 · modifiée le 17 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Faible 22/100

Résumé

In the Linux kernel, the following vulnerability has been resolved: xfrm: move policy_bydst RCU sync from per-netns .exit to .pre_exit The struct pernet_operations docstring in include/net/net_namespace.h explicitly warns against blocking RCU primitives in .exit handlers: Exit methods using blocking RCU primitives, such as synchronize_rcu(), should be implemented via exit_batch. [...] Please, avoid synchronize_rcu() at all, where it's possible. Note that a combination of pre_exit() and exit() can be used, since a synchronize_rcu() is guaranteed between the calls. xfrm_policy_fini() violates this: it calls synchronize_rcu() before freeing the policy_bydst hash tables (so no RCU reader is mid- traversal at free time), but runs from xfrm_net_ops.exit -- once per namespace -- so a cleanup_net() of N namespaces pays N full RCU grace periods serially. Use the documented pre_exit/exit split. Move the policy flush (and the workqueue drains it depends on) into a new .pre_exit handler; xfrm_policy_fini() then runs in .exit and frees the hash tables after the synchronize_rcu_expedited() that cleanup_net() guarantees between the two phases. Providing O(1) RCU grace periods per batch instead of O(N). Observed on Linux 6.18 with a workload doing unshare(CLONE_NEWNET) at ~13/sec sustained: cleanup_net() and the netns_wq rescuer kthread both stuck in xfrm_policy_fini()'s synchronize_rcu(), >300k struct net accumulated in the cleanup queue, Percpu in /proc/meminfo climbed to 130+ GB on 256-CPU hosts, and memcg OOMs followed. setup_net and __put_net counts were balanced, ruling out a refcount leak.

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

Produits et versions affectés

Linux (14 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux de 6.12.83 (inclus) à 6.12.93 (exclu) — CNA (éditeur ou attributeur)
Linux de 6.18.24 (inclus) à 6.18.35 (exclu) — CNA (éditeur ou attributeur)
Linux de 6.1.191 (inclus) à 6.2 (exclu) — CNA (éditeur ou attributeur)
Linux de 6.6.136 (inclus) à 6.7 (exclu) — CNA (éditeur ou attributeur)
Linux de 6.19.14 (inclus) à 6.20 (exclu) — CNA (éditeur ou attributeur)
Linux 7.0 — CNA (éditeur ou attributeur)
Linux kernel de 6.1.191 (inclus) à 6.2 (exclu) — NVD
Linux kernel de 6.6.136 (inclus) à 6.7 (exclu) — NVD
Linux kernel de 6.12.83 (inclus) à 6.12.93 (exclu) — NVD
Linux kernel de 6.18.24 (inclus) à 6.18.35 (exclu) — NVD
Linux kernel de 6.19.14 (inclus) à 7.0 (exclu) — NVD
Linux kernel de 7.0.1 (inclus) à 7.0.12 (exclu) — NVD
Linux kernel 7.0 — NVD
Linux kernel 7.1 — 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-1286)
  3. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1333)
  4. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1470)
  5. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1535)
  6. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1537)
  7. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1593)

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