cve.bz

CVE-2026-6791 the gnu c library glibc: Stack-based Buffer Overflow

6.6 mediumEPSS 0.2%

Medium (6.6) in the gnu c library glibc. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 12th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-08-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-121 Stack-based Buffer Overflow
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-6791 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-6791?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-6791?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-6791 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
The GNU C Library glibcfrom 2.0 through 2.43

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12glibcno fix listedDEBIAN-CVE-2026-6791
Debian13glibc2.41-12+deb13u5DEBIAN-CVE-2026-6791
Debian14glibc2.43-3DEBIAN-CVE-2026-6791
Ubuntu22.04:LTSglibc2.35-0ubuntu3.15UBUNTU-CVE-2026-6791 USN-8737-1
Ubuntu24.04:LTSglibc2.39-0ubuntu8.9UBUNTU-CVE-2026-6791 USN-8737-2
Ubuntu26.04:LTSglibc2.43-2ubuntu2.4UBUNTU-CVE-2026-6791 USN-8737-1
UbuntuPro:14.04:LTSeglibcno fix listedUBUNTU-CVE-2026-6791
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSglibcno fix listedUBUNTU-CVE-2026-6791
Red Hatenterprise_linux:8::appstreamglibc-utils, nscd-debuginfo, glibc-debuginfo and 10 more0:2.28-251.el8_10.43RHSA-2026:76777
Red Hatenterprise_linux:8::baseosnscd, glibc, libnsl and 216 more0:2.28-251.el8_10.43RHSA-2026:76777
Red Hatenterprise_linux:8::crbnss_hesiod, glibc-static, nscd-debuginfo and 12 more0:2.28-251.el8_10.43RHSA-2026:76777
Red Hatenterprise_linux:9::appstreamglibc-doc, glibc-devel, glibc-utils and 12 more0:2.34-283.el9_8RHSA-2026:79281
Red Hatenterprise_linux:9::baseosnscd, glibc, libnsl and 212 more0:2.34-283.el9_8RHSA-2026:79281
Red Hatenterprise_linux:9::crbnss_db, nss_hesiod, glibc-static and 12 more0:2.34-283.el9_8RHSA-2026:79281
Red Hatenterprise_linux:10.2glibc, libnsl, nss_db and 227 more0:2.39-142.el10_2RHSA-2026:76781
Red Hathummingbird:1glibc, libnsl, nss_db and 225 more0:2.43-8.1.hum1RHSA-2026:53069
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreglibc2.31-150300.109.1SUSE-SU-2026:4591-1
SUSELinux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Server 15 SP6-LTSS and 1 moreglibc2.38-150600.14.58.1SUSE-SU-2026:4250-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5glibc2.22-114.52.2SUSE-SU-2026:4204-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0glibc2.40-160000.7.1SUSE-SU-2026:23934-1
SUSELinux Micro 6.0glibc2.38-15.1SUSE-SU-2026:23830-1
SUSELinux Micro 6.1glibc2.38-slfo.1.1_10.1SUSE-SU-2026:23738-1
SUSELinux Micro 6.2glibc2.40-160000.7.1SUSE-SU-2026:23957-1
SUSELinux Micro Extras 6.2glibc2.40-160000.7.1SUSE-SU-2026:23929-1
openSUSELeap 16.0glibc, glibc-cross-s390x-src, glibc-cross-aarch64-src and 2 more2.40-160000.7.1openSUSE-SU-2026:21968-1
openSUSETumbleweedglibc2.44-1.1openSUSE-SU-2026:11660-1
AlmaLinux8nscd, glibc, libnsl and 211 more2.28-251.el8_10.43ALSA-2026:76777
AlmaLinux9nscd, glibc, libnsl and 212 more2.34-283.el9_8ALSA-2026:79281
AlmaLinux10glibc-doc2.39-142.el10_2.alma.1ALSA-2026:76781
Rocky Linux8glibc0:2.28-251.el8_10.43RLSA-2026:76777
Rocky Linux9glibc0:2.34-283.el9_8RLSA-2026:79281
Rocky Linux10glibc0:2.39-142.el10_2RLSA-2026:76781
Azure Linux3glibcno fix listedAZL-95492
Alpaquita23glibc2.37.0-r24BELL-CVE-2026-6791
Alpaquita25glibc2.39.0-r9BELL-CVE-2026-6791
Alpaquitastreamglibc2.43.0-r1BELL-CVE-2026-6791
BellSoft Hardened Containers23glibc2.37.0-r24BELL-CVE-2026-6791
BellSoft Hardened Containers25glibc2.39.0-r9BELL-CVE-2026-6791
BellSoft Hardened Containersstreamglibc2.43.0-r1BELL-CVE-2026-6791

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10glibc-0:2.39-142.el10_2Fixed 2026-10-08RHSA-2026:76781
Red Hat Enterprise Linux 8glibc-0:2.28-251.el8_10.43Fixed 2026-10-07RHSA-2026:76777
Red Hat Enterprise Linux 9glibc-0:2.34-283.el9_8Fixed 2026-10-08RHSA-2026:79281
Cost Management 4costmanagement/costmanagement-metrics-rhel9-operator:1793202662Fixed 2026-11-04RHSA-2026:95264
Red Hat Hardened Imagesglibc-main-2.43-8.1.hum1Fixed 2026-08-10RHSA-2026:53069
Red Hat Update Infrastructure 5rhui5/cds-kubernetes-rhel9:1791978534Fixed 2026-10-14RHSA-2026:82939
Red Hat Update Infrastructure 5rhui5/cds-rhel9:1791978528Fixed 2026-10-14RHSA-2026:82939
Red Hat Update Infrastructure 5rhui5/haproxy-rhel9:1791978528Fixed 2026-10-14RHSA-2026:82939
Red Hat Update Infrastructure 5rhui5/installer-rhel9:1791964013Fixed 2026-10-14RHSA-2026:82939
Red Hat Update Infrastructure 5rhui5/rhua-rhel9:1791978693Fixed 2026-10-14RHSA-2026:82939
Red Hat Enterprise Linux 6compat-glibcOut of support scope
Red Hat Enterprise Linux 6glibcOut of support scope
Red Hat Enterprise Linux 7compat-glibcFix deferred
Red Hat Enterprise Linux 7glibcFix deferred
Red Hat Hardened ImagesfilesystemNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-6791.

References

Check your stackJSON