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

CVE-2026-100290

Double free after allocation failure in regcomp and regexec

Publiée le 11 nov. 2026 · modifiée le 17 nov. 2026 · Sources : NVD, CNA (éditeur ou attributeur), EPSS (FIRST)

Faible 26/100

Résumé

The regcomp and regexec functions in the GNU C Library version 2.3 to version 2.44 may read freed memory and free the same heap block twice when a memory allocation fails while a regular expression is compiled or matched. The re_dfa_add_node (the NFA node table) and build_range_exp (bracket ranges) grow several arrays with consecutive realloc calls and store the new pointers only after all of them succeed. When a later call fails, the pattern buffer keeps pointers to blocks that were already freed, and the error cleanup frees them again. In regexec, the back-reference cache (match_ctx_add_entry) frees its array when a realloc fails but keeps the pointer, which is freed again on the error path. An attacker does not need to supply a crafted regular expression: patterns large enough to grow these arrays are common. The failure has to hit a specific allocation, though, so the issue can only be reached when the system is already under memory pressure. An attacker who supplies the pattern or the subject string has little control over which allocation fails, so the expected impact is a crash of the process. This issue affects all architectures and ABIs supported by the GNU C Library.

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

Produits et versions affectés

The GNU C Library (1 ligne(s))
The GNU C Library
ProduitVersionsCorrigé dansSource
glibc de 2.3 (inclus) à 2.44 (inclus) — CNA (éditeur ou attributeur)

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
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L (CVSS 3.1, CNA:glibc)
Faiblesse
CWE-415 · Corruption mémoire

Comment sont obtenues et calculées ces données