Bug 2513603 (CVE-2026-6791) - CVE-2026-6791 glibc: Glibc: Denial of Service via stack exhaustion during tilde expansion
Summary: CVE-2026-6791 glibc: Glibc: Denial of Service via stack exhaustion during til...
Keywords:
Status: NEW
Alias: CVE-2026-6791
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2514552 2514553 2514554
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-10 19:01 UTC by OSIDB Bzimport
Modified: 2026-08-26 12:21 UTC (History)
22 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-10 19:01:29 UTC
When expanding paths that begin with a tilde (~) followed by a username, the internal parse_tilde function extracts the username to determine the user's home directory.  The implementation allocates memory for this username directly on the stack using the strndupa macro. Because the size of this allocation was determined by the length of the user-supplied input without any bounds checks, passing an excessively long username e.g. thousands of characters, forces the thread to exhaust its stack space. Thus if an application passes untrusted, attacker-controlled input to the wordexp function, an attacker can trigger a stack clash.


Note You need to log in before you can comment on or make changes to this bug.