CVE-2026-19542 Details
Description
Calling tdelete on a sufficiently deep tree in the GNU C Library version 2.1 to 2.44 may write one pointer past the end of an alloca-allocated array on the stack, which may crash the application. The tdelete implementation keeps an explicit stack of parent nodes for rebalancing, which is grown as needed while descending the tree. Two rebalancing branches push an additional entry without checking the capacity, and write past the array when the stack is exactly full. Triggering this requires a node at a depth of exactly 40 (or 40 plus a multiple of 20), which implies a tree with at least a million nodes, so an attacker must drive a large number of insertions and deletions through an application that uses tsearch and tdelete. The written value is a pointer into a tree node and is not directly attacker controlled. No affected application in common distributions has been identified.
A stack-based buffer overflow vulnerability has been identified in the GNU C Library (glibc) versions 2.1 through 2.44. The issue arises in the tdelete function, which is used to delete nodes from a tree data structure. The vulnerability occurs when tdelete is called on a tree that is sufficiently deep, specifically at a depth of 40 or 40 plus a multiple of 20. Under these conditions, the function can write a pointer past the end of an array allocated with alloca, potentially leading to a crash. This depth requirement implies that the tree must contain at least a million nodes, necessitating a large number of insertions and deletions through an application that utilizes tsearch and tdelete.
Users can upgrade to glibc versions 2.45, 2.44-26, 2.43-51, or 2.42-85, all of which include the patch for this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://sourceware.org/bugzilla/show_bug.cgi?id=34506 | GNU C Library | |
| https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=advisories/GLIBC-SA-2026-0018 | GNU C Library |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-121 | Stack-based Buffer Overflow | GNU C Library |
Affected Products
No affected product data is available for this CVE.
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 14, 2026 | CVE Modified | CISA-ADP |
| Sep 14, 2026 | New CVE Received | GNU C Library |