Repository navigation
Closed
Labels
1.severity: securityIssues which raise a security issue, or PRs that fix one
Description
Nixpkgs security tracker issue
CVE-2026-6791
6.6 MEDIUM | CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:L/SA:H/E:U
- CVSS version (CVSS): 4.0
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): High (H)
- Attack Requirement (AT): None (N)
- Privileges Required (PR): None (N)
- User Interaction (UI): None (N)
- Vulnerable System Impact Confidentiality (VC): Low (L)
- Vulnerable System Impact Integrity (VI): Low (L)
- Vulnerable System Impact Availability (VA): High (H)
- Subsequent System Impact Confidentiality (SC): None (N)
- Subsequent System Impact Integrity (SI): Low (L)
- Subsequent System Impact Availability (SA): High (H)
- Exploit Maturity (E): Unreported (U)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): High (H)
- Modified Attack Requirement (MAT): None (N)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): None (N)
- Modified Vulnerable System Impact Confidentiality (MVC): Low (L)
- Modified Vulnerable System Impact Integrity (MVI): Low (L)
- Modified Vulnerable System Impact Availability (MVA): High (H)
- Modified Subsequent System Impact Confidentiality (MSC): Negligible (N)
- Modified Subsequent System Impact Integrity (MSI): Low (L)
- Modified Subsequent System Impact Availability (MSA): High (H)
- Safety (S): Not Defined (X)
- Automatable (AU): Not Defined (X)
- Recovery (R): Not Defined (X)
- Value Density (V): Not Defined (X)
- Vulnerability Response Effort (RE): Not Defined (X)
- Provider Urgency (U): Not Defined (X)
- Confidentiality Req. (CR): Not Defined (X)
- Integrity Req. (IR): Not Defined (X)
- Availability Req. (AR): Not Defined (X)
Potential stack-based buffer clash during tilde expansion in wordexp
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.References
- https://sourceware.org/bugzilla/show_bug.cgi?id=34091 (
issue-tracking)
Affected packages
libc(pull requests)- [email protected]
- 2.42-67@nixos-unstable
glibc(pull requests)- [email protected]
- 2.42-67@nixos-unstable
Affected package maintainers: cc @ConnorBaker, @balsoft, @Ma27, @leona-ya, @andir, @pyrox0
Additional comment
https://sourceware.org/git/?p=glibc.git;a=blob;f=advisories/GLIBC-SA-2026-0013
Next steps
- Start here if this is your first security issue: Triaging and fixing security issues
- Backports are usually needed: Backporting security fixes
Metadata
Metadata
Assignees
Labels
1.severity: securityIssues which raise a security issue, or PRs that fix one
Activity
glibc: 2.42-67 -> 2.42-84, fixes CVE-2026-6368 & CVE-2026-6791
glibc: 2.42-67 -> 2.42-84, fixes CVE-2026-6368 & CVE-2026-6791
glibc: 2.42-67 -> 2.42-84, fixes CVE-2026-6368 & CVE-2026-6791
Ma27 commentedon Sep 27, 2026
This landed on both supported branches, no idea why it's still open 🤔