CVE-2026-6791
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.220% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 6.6 · published by glibcCVSS: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
Assessment source · checked 2026-11-19T12:59:02.234Z
CVSS 4.0 · 6.6 · published by Ubuntu SecurityCVSS: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
Assessment source · checked 2026-11-19T12:50:26.114Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:59:02.234Z | CVE Program |
| epss | verified | 2026-11-19T16:04:54.501Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:50:26.114Z | Ubuntu Security |
| affected | verified | 2026-11-19T12:59:02.234Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:59:02.234Z | CVE Program |
Affected versions and configuration
The GNU C Library glibc (Linux); default status: unaffected: 2.0 to ≤ 2.43 [affected; scheme: custom]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"repo": "https://sourceware.org/git/?p=glibc.git",
"vendor": "The GNU C Library",
"product": "glibc",
"versions": [
{
"status": "affected",
"version": "2.0",
"versionType": "custom",
"lessThanOrEqual": "2.43"
}
],
"platforms": [
"Linux"
],
"packageName": "glibc",
"collectionURL": "https://sourceware.org/glibc/",
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-6791",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-08-12T18:01:21.626992Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-08-12T18:01:38.950Z"
}
}
]
}Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "glibc",
"debian": "https://tracker.debian.org/pkg/glibc",
"source": "https://ubuntu.com/security/cve?package=glibc",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=glibc",
"statuses": [
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "xenial"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "bionic"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "2.43-3",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "2.35-0ubuntu3.15",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "2.43-2ubuntu2.4",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "released",
"component": null,
"description": "2.39-0ubuntu8.9",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "2.44-1ubuntu1",
"release_codename": "stonking"
}
]
}
]Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| upstream-release | upstream / upstream | glibc | Not a distribution channel | 2.43-3 | Official record |
| distribution-package | Ubuntu / jammy | glibc | security | 2.35-0ubuntu3.15 | Official record |
| distribution-package | Ubuntu / resolute | glibc | security | 2.43-2ubuntu2.4 | Official record |
| distribution-package | Ubuntu / noble | glibc | security | 2.39-0ubuntu8.9 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:59:02.234ZArchived source JSON
Source publication: 2026-08-10T18:41:25.122Z
Source modification: 2026-08-12T18:01:38.950ZDocument fingerprint
6ffb9dd090cc4350855156d43802948a1576001b8e7a49124bb2f0d65801249a - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - Ubuntu SecurityConsulted: 2026-11-19T12:50:26.114ZArchived source JSON
Source publication: 2026-08-10T19:17:00.000Z
Source modification: 2026-09-10T15:57:05.864ZDocument fingerprint
9b9ba2a1526a2feb219f484254bc99b5fed0f9323fad0433c21afb49ce5dcf81 - FIRST EPSSConsulted: 2026-11-19T16:04:54.501ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
e15d142fc562fc676e45e0e74f04a724210a64d0886f92dbe1f2de8991097e5e
Official status history
- UNKNOWN → PUBLISHED · · evidence