# CVE-2026-100290: Double free after allocation failure in regcomp and regexec

- Severity: Low 3.7 (CVSS:3.1, scored by glibc) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-11-11T15:56:08.323Z
- Modified: 2026-11-17T15:17:27.667Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: glibc

## Description

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.

(As written by CVE List.)

## Affected

- The GNU C Library glibc: from 2.3 up to 2.44

## References

- <https://sourceware.org/bugzilla/show_bug.cgi?id=34991> (issue-tracking)
- <https://sourceware.org/bugzilla/show_bug.cgi?id=31935> (issue-tracking)
- <https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=advisories/GLIBC-SA-2026-0028> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-100290](https://www.cve.org/CVERecord?id=CVE-2026-100290), CVE Terms of Use, modified 2026-11-17
- NVD: [CVE-2026-100290](https://nvd.nist.gov/vuln/detail/CVE-2026-100290), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-100290 · Whole record: https://cve.day/CVE-2026-100290.json · Rebuilt by cve.day 2026-11-25T22:59:50.382Z
