Bug 2514552 - CVE-2026-6791 glibc: Glibc: Denial of Service via stack exhaustion during tilde expansion [fedora-all]
Summary: CVE-2026-6791 glibc: Glibc: Denial of Service via stack exhaustion during til...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Carlos O'Donell
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["3f17fc3a-0d1d-4d18-83dc-e...
Depends On:
Blocks: CVE-2026-6791
TreeView+ depends on / blocked
 
Reported: 2026-08-12 10:46 UTC by Marian Rehak
Modified: 2026-08-12 10:46 UTC (History)
14 users (show)

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


Attachments (Terms of Use)

Description Marian Rehak 2026-08-12 10:46:34 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.