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

CVE-2026-53262

l2tp: pppol2tp: hold reference to session in pppol2tp_ioctl()

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

Faible 32/100

Résumé

In the Linux kernel, the following vulnerability has been resolved: l2tp: pppol2tp: hold reference to session in pppol2tp_ioctl() pppol2tp_ioctl() read sock->sk->sk_user_data directly without any locks or reference counting. If a controllable sleep was induced during copy_from_user() (e.g. via a userfaultfd page fault sleep), a concurrent socket close could trigger pppol2tp_session_close() asynchronously. This frees the l2tp_session structure via the l2tp_session_del_work workqueue. Upon resuming, the ioctl thread dereferences the stale session pointer, resulting in a Use-After-Free (UAF). Fix this by securely fetching the session reference using the RCU-safe, refcounted helper pppol2tp_sock_to_session(sk) on entry. This locks the session's refcount across the sleep. We structured the function to exit via standard err breaks, guaranteeing that l2tp_session_put() is cleanly called on all return paths to drop the reference. To preserve existing behavior we validate the session and its magic signature only for the specific L2TP commands that require it. This ensures that generic/unknown ioctls called on an unconnected socket still return -ENOIOCTLCMD and correctly fall back to generic handlers (e.g. in sock_do_ioctl()).

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

Produits et versions affectés

Linux (5 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux 2.6.35 — CNA (éditeur ou attributeur)
Linux kernel de 2.6.35 (inclus) à 6.12.94 (exclu) — NVD
Linux kernel de 6.13 (inclus) à 6.18.36 (exclu) — NVD
Linux kernel de 6.19 (inclus) à 7.0.13 (exclu) — 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-1537)
  5. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1595)

Avis CERT-FR

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, CNA:416baaa9-dc9f-4396-8d5f-8c081fb06d67)
Faiblesse
NVD-CWE-Other · Non classé

Comment sont obtenues et calculées ces données