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

CVE-2025-71074

functionfs: fix the open/removal races

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

Faible 20/100

Résumé

In the Linux kernel, the following vulnerability has been resolved: functionfs: fix the open/removal races ffs_epfile_open() can race with removal, ending up with file->private_data pointing to freed object. There is a total count of opened files on functionfs (both ep0 and dynamic ones) and when it hits zero, dynamic files get removed. Unfortunately, that removal can happen while another thread is in ffs_epfile_open(), but has not incremented the count yet. In that case open will succeed, leaving us with UAF on any subsequent read() or write(). The root cause is that ffs->opened is misused; atomic_dec_and_test() vs. atomic_add_return() is not a good idea, when object remains visible all along. To untangle that * serialize openers on ffs->mutex (both for ep0 and for dynamic files) * have dynamic ones use atomic_inc_not_zero() and fail if we had zero ->opened; in that case the file we are opening is doomed. * have the inodes of dynamic files marked on removal (from the callback of simple_recursive_removal()) - clear ->i_private there. * have open of dynamic ones verify they hadn't been already removed, along with checking that state is FFS_ACTIVE.

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

Produits et versions affectés

Linux (4 ligne(s))
Linux
ProduitVersionsCorrigé dansSource
Linux 2.6.35 — CNA (éditeur ou attributeur)
Linux kernel de 2.6.35.1 (inclus) à 6.19 (exclu) — NVD
Linux kernel 2.6.35 — NVD
Linux kernel 6.19 — 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-1473)
  3. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1595)
  4. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1596)

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:H/PR:L/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-362 · Autre (CWE-362)

Comment sont obtenues et calculées ces données