REDHAT-BUG-2513603: Medium severity GNU GNU C Library vulnerability

Published Aug 10, 2026
·
Updated

When expanding paths that begin with a tilde (~) followed by a username, the internal parsetilde 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.

Affected Software

1 affected component
GNU GNU C Library

Event History

Aug 10, 2026
Data Sourced
via Red Hat·07:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications are exposed if they pass untrusted, attacker-controlled input to the GNU C Library wordexp function and allow tilde-prefixed paths containing a username to be expanded.

2

What input is required to trigger the problem?

An attacker needs to supply a path beginning with a tilde followed by an excessively long username, potentially thousands of characters. The unbounded username length can exhaust the thread stack during tilde expansion.

3

What is the impact of successful exploitation?

Successful exploitation can trigger a stack clash by exhausting stack space in the affected thread.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203