Potential stack-based buffer clash during tilde expansion in wordexp
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · High
- Fix status
- Partial Red Hat: 12 fixed, 4 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Red Hat 6 advisories
- RHSA-2026:95264 Released 2026-11-04 · Red Hat rating CriticalCost Management Metrics Operator Update
- Cost Management 4 registry.redhat.io/costmanagement/costmanagement-metrics-rhel9-operator
- RHSA-2026:82939 Released 2026-10-14 · Red Hat rating ImportantRed Hat Update Infrastructure 5.3 security update
- Red Hat Update Infrastructure 5 registry.redhat.io/rhui5/cds-kubernetes-rhel9, registry.redhat.io/rhui5/cds-rhel9, registry.redhat.io/rhui5/haproxy-rhel9 +2
- RHSA-2026:79281 Released 2026-10-08 · Red Hat rating Moderateglibc security, bug fix, and enhancement update
- Red Hat Enterprise Linux AppStream (v. 9) glibc-devel-2.34-283.el9_8, glibc-doc-2.34-283.el9_8, glibc-headers-2.34-283.el9_8 +2
- Red Hat Enterprise Linux BaseOS (v. 9) glibc-2.34-283.el9_8, glibc-all-langpacks-2.34-283.el9_8, glibc-common-2.34-283.el9_8 +47
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) glibc-benchtests-2.34-283.el9_8, glibc-nss-devel-2.34-283.el9_8, glibc-static-2.34-283.el9_8 +2
Show 3 more Red Hat advisories
- RHSA-2026:76781 Released 2026-10-08 · Red Hat rating Moderateglibc security, bug fix, and enhancement update
- Red Hat Enterprise Linux AppStream (v. 10) glibc-devel-2.39-142.el10_2, glibc-doc-2.39-142.el10_2, glibc-locale-source-2.39-142.el10_2 +1
- Red Hat Enterprise Linux BaseOS (v. 10) glibc-2.39-142.el10_2, glibc-all-langpacks-2.39-142.el10_2, glibc-common-2.39-142.el10_2 +47
- Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) glibc-benchtests-2.39-142.el10_2, glibc-nss-devel-2.39-142.el10_2, glibc-static-2.39-142.el10_2 +2
- RHSA-2026:76777 Released 2026-10-07 · Red Hat rating Moderateglibc security update
- Red Hat Enterprise Linux AppStream (v. 8) compat-libpthread-nonshared-2.28-251.el8_10.43, glibc-utils-2.28-251.el8_10.43
- Red Hat Enterprise Linux BaseOS (v. 8) glibc-2.28-251.el8_10.43, glibc-all-langpacks-2.28-251.el8_10.43, glibc-common-2.28-251.el8_10.43 +47
- Red Hat Enterprise Linux CRB (v. 8) glibc-benchtests-2.28-251.el8_10.43, glibc-nss-devel-2.28-251.el8_10.43, glibc-static-2.28-251.el8_10.43 +1
- RHSA-2026:53069 Released 2026-08-10 · Red Hat rating ModerateRed Hat Hardened Images RPMs bug fix and enhancement update
- Red Hat Hardened Images compat-libpthread-nonshared-2.43-8.1.hum1@aarch64, compat-libpthread-nonshared-2.43-8.1.hum1@x86_64, glibc-2.43-8.1.hum1@aarch64 +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet: Fix deferred |
| Cost Management 4 | Fixed | RHSA-2026:95264 |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2026:76781 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2026:76777 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2026:79281 |
| Red Hat Enterprise Linux BaseOS (v. 10) | Fixed | RHSA-2026:76781 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2026:76777 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2026:79281 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2026:76777 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) | Fixed | RHSA-2026:76781 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) | Fixed | RHSA-2026:79281 |
| Red Hat Hardened Images | Fixed | RHSA-2026:53069 |
| Red Hat Update Infrastructure 5 | Fixed | RHSA-2026:82939 |
Not affected: 3 products
- Cost Management 4
- Red Hat Hardened Images
- Red Hat OpenShift AI (RHOAI)
Timeline
- 2026-10-02 Threatist record created from CVE-2026-6791
- 2026-10-03 Alias added: GHSA-ch73-g8qv-r6r5
- 2026-10-07 Fix available: RHSA-2026:76777 · Red Hat
- 2026-10-07 Fix available: Red Hat Enterprise Linux AppStream (v. 8), Red Hat Enterprise Linux BaseOS (v. 8), Red Hat Enterprise Linux CRB (v. 8) · Red Hat
- 2026-10-09 Fix available: RHSA-2026:76781 · Red Hat
- 2026-10-09 Fix available: RHSA-2026:79281 · Red Hat
- 2026-10-09 Fix available: Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux AppStream (v. 9), Red Hat Enterprise Linux BaseOS (v. 10) +3 · Red Hat
- 2026-10-16 Fix available: RHSA-2026:82939 · Red Hat
- 2026-10-16 Fix available: Red Hat Update Infrastructure 5 · Red Hat
- 2026-10-30 Affected versions changed · Red Hat
- 2026-11-06 Fix available: Cost Management 4 · Red Hat
- 2026-11-06 Fix available: RHSA-2026:95264 · Red Hat
- 2026-11-06 Affected versions changed · Red Hat
References
More GNU vulnerabilities
- TI-2026-19388 telnetd in GNU Inetutils through 2.7 allows remote authentication bypass via a "-f root"… KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05975 GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed… KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05157 GNU Bash through 4.3 processes trailing strings after function definitions in the values… KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05164 GNU Bash through 4.3 bash43-026 does not properly parse function definitions in the… KEVCVSS 3.1HIGH 8.8
- TI-2023-04522 Glibc: buffer overflow in ld.so leading to privilege escalation KEVCVSS 3.1HIGH 7.8
- TI-2009-03392 The TLS protocol, and the SSL protocol 3.0 and possibly earlier, as used in Microsoft… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-6791 · CVE Program
- CVE-2026-6791 · NVD
- FIRST EPSS
- GHSA-ch73-g8qv-r6r5 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-6791 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences