CVE-2026-6791 is a critical vulnerability in the GNU C Library (glibc) affecting versions before 2.39_2. It involves a stack-based buffer clash triggered during tilde (~) expansion in the wordexp function when processing excessively long usernames. This occurs because the username is allocated on the stack without bounds checking, potentially exhausting stack space and causing a clash. The issue is fixed in glibc version 2.39_2.