Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply large regex pattern or subject
-
ExploitInduce allocation failure under memory pressure
-
ExecutionTrigger double-free in regex cleanup path
-
ImpactCrash the affected process
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
|
| Exploitation Conditions | Exploitation requires that a heap allocation (a realloc growing the NFA node table in re_dfa_add_node, a bracket-range array in build_range_exp, or the back-reference cache array in match_ctx_add_entry) fail at a specific point during regex compilation or matching - which per the description can only occur when the system is already under memory pressure. The attacker must be able to supply either the regular expression pattern or the subject string to an application that uses glibc's regcomp/regexec, but no crafted or malicious pattern is needed; patterns merely large enough to grow these arrays suffice. Key limiting factors: the attacker has little control over which allocation fails, the window exists only under low-memory conditions, and the confirmed impact is limited to a process crash with no confidentiality or integrity effect. Affects all architectures and ABIs supported by glibc, versions 2.3 to 2.44. |
| Impact | All signals converge on low real-world priority. The CVSS base score is 3.7 (Low) with vector AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L - the only impact is Availability:Low, with no confidentiality or integrity effect, and high attack complexity. The high complexity (AC:H) is justified by the description itself: the double-free/use-after-free is only reachable when a specific heap allocation fails, which requires the system to already be under memory pressure, and an attacker supplying the pattern or subject string has little control over which realloc fails. vuln.today assigns the 'monitor' decision label, the lowest urgency tier, which is consistent with the data. No EPSS score was provided; the CVE is not in CISA KEV, and no public exploit code or PoC reference is present (the references are two Sourceware Bugzilla entries and the GLIBC-SA-2026-0028 advisory, not exploit code). Exploitation status: no public exploit identified at time of analysis. No signals conflict here - this is a genuinely low-risk memory-safety hardening fix in an extremely widespread library, not a high-CVSS-but-overrated issue; its importance comes from glibc's ubiquity rather than from exploitability. Expected worst-case impact per the vendor is a process crash (denial of service). |
| Exploit ScenarioDerived | While a target process is under memory pressure, an attacker submits a large regular expression pattern (or a large subject string) to an application that calls glibc's regcomp/regexec, so that a realloc inside re_dfa_add_node, build_range_exp, or match_ctx_add_entry fails at the wrong moment. The failed-allocation cleanup path then frees heap blocks that were already freed (CWE-415 double free) or reads freed memory, crashing the process. No crafted/malicious regex is required and no public exploit is known, but the attacker has little control over which allocation fails, so the realistic outcome is a denial of service rather than code execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
GNU C Library (glibc) versions 2.3 through 2.44 can double-free heap blocks and read freed memory when a memory allocation fails during regular-expression compilation or matching, crashing the affected process. The defect is in the NFA node table growth (re_dfa_add_node), bracket-range expansion (build_range_exp) and the back-reference cache (match_ctx_add_entry), where a failing realloc leaves stale pointers that the error path frees a second time. Unauthenticated remote input reaches it (CVSS PR:N/UI:N) but only with AC:H, because the specific allocation must fail while the system is already under memory pressure and the attacker cannot choose which one; impact is limited to availability, no public exploit identified at time of analysis, and the priority decision is monitor.
RemediationAI
No exact fixed version is stated in the available data; the vendor advisory GLIBC-SA-2026-0028 (https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=advisories/GLIBC-SA-2026-0028) and upstream bug 34991 should be consulted for the patched release, and affected systems should be upgraded to that glibc build - note that replacing the library requires restarting linked services before the fix takes effect. The sources describe no configuration-level workaround for regcomp/regexec callers, so exposure cannot be removed by disabling a feature or blocking a port; the only precondition they identify is that a specific realloc must fail while the system is already under memory pressure, so keeping regex-handling processes out of low-memory conditions reduces the chance of reaching the faulty error paths but does not eliminate the defect. Track the related upstream report at https://sourceware.org/bugzilla/show_bug.cgi?id=31935 for follow-up.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a CWE-415 double free arising from an error-handling pattern in glibc's POSIX regex engine. In regcomp, re_dfa_add_node grows the DFA/NFA node table and build_range_exp grows bracket-expression range arrays using consecutive realloc calls, but the new pointers are stored only after all of the calls succeed. If a later realloc fails, the pattern buffer still holds pointers to blocks that the earlier successful realloc already freed, and the compilation error cleanup frees those blocks again. In regexec, the back-reference cache in match_ctx_add_entry frees its backing array when a realloc fails but keeps the pointer, so the matching error path frees the same block a second time; the stale pointer also means freed memory may be read. Nothing about the bug depends on the pattern being malicious or crafted - patterns merely large enough to make these arrays grow trigger the code paths - but the faulty branches execute only when a specific allocation fails, which the sources say can happen only while the system is already under memory pressure, and the attacker has little control over which allocation fails. The issue affects all architectures and ABIs supported by glibc across versions 2.3 to 2.44.
Know when Glibc gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
The pattern/subject can be remote (AV:N) with no auth (PR:N), but triggering needs an allocation failure under memory pressure the attacker cannot control (AC:H), and impact is a crash only (A:L, C/I:N).
Primary rating from Vendor (glibc).
CVSS VectorVendor: glibc
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Local privilege escalation in the GNU C Library (glibc) dynamic loader ld.so allows unprivileged local users on affected
Heap-based buffer overflow in the __nss_hostname_digits_dots function in glibc 2.2, and other 2.x versions before 2.18,
The iconv() function in the GNU C Library versions 2.39 and older may overflow the output buffer passed to it by up to 4
Multiple stack-based buffer overflows in the (1) send_dg and (2) send_vc functions in the libresolv library in the GNU C
Local privilege escalation in GNU glibc 2.36 and newer arises from a heap-based buffer overflow in __vsyslog_internal, r
Off-by-one error in the __gconv_translit_find function in gconv_trans.c in GNU C Library (aka glibc) allows context-depe
Integer overflow in string/strcoll_l.c in the GNU C Library (aka glibc or libc6) 2.17 and earlier allows context-depende
In glibc 2.26 and earlier there is confusion in the usage of getcwd() by realpath() which can be used to write before th
In the GNU C Library (aka glibc or libc6) through 2.29, proceed_next_node in posix/regexec.c has a heap-based buffer ove
GNU Libc current is affected by: Mitigation bypass. Rated critical severity (CVSS 9.8), this vulnerability is remotely e
The mq_notify function in the GNU C Library (aka glibc) versions 2.32 and 2.33 has a use-after-free. Rated critical seve
sprintf in the GNU C Library (glibc) 2.37 has a buffer overflow (out-of-bounds write) in some situations with a correct
EUVD-2026-123573
GHSA-qvhh-2rc2-h32w
NVD
CVE.org
EPSS
Exploit-DB