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.
Published: 2026-09-14
Score: 5.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via memory corruption
Action: Apply Patch
AI Analysis

Impact

The flaw arises in the GNU C Library's tdelete routine. When a tree with sufficient depth is deleted, the rebalancing code uses an alloca-allocated array as a stack of parent nodes. Two branches of the algorithm push an additional element onto this array without first checking its capacity. If the array is already full—which occurs when the tree has a depth of exactly 40 (or 40 plus multiples of 20)—the code writes one pointer past the end of the buffer. The overwritten value is a pointer to a tree node that is not directly controllable by an attacker, and the out-of-bounds write corrupts the stack, causing the application to crash. The vulnerability requires an attacker to drive a large number of insertions and deletions through an application using tsearch and tdelete to create a tree of the required depth, which makes exploitation nontrivial and likely limited to local or unprivileged users interacting with the application. The weakness is a stack-based buffer overflow classified as CWE-121 and CWE-787; its impact is primarily disruption of application availability.

Affected Systems

The vulnerability impacts the GNU C Library (glibc), a core component of Linux systems. It affects glibc versions 2.1 through 2.44, which includes many distribution releases. The advisory does not list a particular distribution or patch version, but any system running a vulnerable glibc build is potentially impacted.

Risk and Exploitability

With a CVSS score of 5.6 the severity is moderate. Exploitation requires the attacker to drive a large number of insertions and deletions through an application that uses tsearch and tdelete, and the flaw may crash the application. The EPSS score is < 1%, indicating a very low but nonzero exploitation probability. The vulnerability is not listed in the CISA KEV catalog, indicating it has not been witnessed in widespread deployment reports as of the last update.

Generated by OpenCVE AI on September 20, 2026 at 23:47 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade glibc to a version that includes the tdelete fix as released by the distribution maintainers
  • Configure the system to limit the privileges of local users who can execute processes that use glibc's tdelete function
  • Monitor system stability and logs for signs of memory corruption or crashes that may indicate exploitation

Generated by OpenCVE AI on September 20, 2026 at 23:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8737-1 GNU C Library vulnerabilities
Ubuntu USN Ubuntu USN USN-8737-2 GNU C Library vulnerabilities
History

Mon, 14 Sep 2026 21:00:00 +0000

Type Values Removed Values Added
Description A flaw was found in glibc. An out-of-bounds array write vulnerability exists within the `tdelete` function. This issue occurs due to incorrect management of array sizes, which can lead to memory corruption. A local attacker with low privileges could potentially exploit this to cause a denial of service or disclose sensitive information. 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.
Title glibc: Fix out-of-bounds array write in tdelete Stack-based out-of-bounds write in tdelete during tree rebalancing
Weaknesses CWE-121
References
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

{'score': 5.6, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L'}


Mon, 31 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Gnu
Gnu glibc
Vendors & Products Gnu
Gnu glibc

Tue, 25 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Description A flaw was found in glibc. An out-of-bounds array write vulnerability exists within the `tdelete` function. This issue occurs due to incorrect management of array sizes, which can lead to memory corruption. A local attacker with low privileges could potentially exploit this to cause a denial of service or disclose sensitive information.
Title glibc: Fix out-of-bounds array write in tdelete
Weaknesses CWE-787
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L'}

threat_severity

Moderate


cve-icon MITRE

Status: PUBLISHED

Assigner: glibc

Published:

Updated: 2026-09-14T19:42:06.277Z

Reserved: 2026-08-11T13:00:37.679Z

Link: CVE-2026-19542

cve-icon Vulnrichment

Updated: 2026-09-14T19:42:00.447Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-14T18:17:46.850

Modified: 2026-09-18T18:17:47.257

Link: CVE-2026-19542

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-25T06:49:13Z

Links: CVE-2026-19542 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-21T00:00:08Z

Weaknesses