Skip to content
OpenAdvisories

Description

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.

Affected products

VendorProductAffectedFixed
The GNU C Library glibc 2.0 – ≤ 2.43 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 glibc 2.43-3 —
Debian 13 glibc No fix yet —
Debian 12 glibc No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS glibc 2.43-2ubuntu2.4 USN-8737-1
Ubuntu 24.04 LTS glibc 2.39-0ubuntu8.9 USN-8737-2
Ubuntu 22.04 LTS glibc 2.35-0ubuntu3.15 USN-8737-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS glibc No fix yet —
Ubuntu Pro 18.04 LTS glibc No fix yet —
Ubuntu Pro 16.04 LTS glibc No fix yet —
Ubuntu Pro 14.04 LTS eglibc No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 glibc +220 2.39-142.el10_2 RHSA-2026:76781
RHEL 9 nscd +214 2.34-283.el9_8 RHSA-2026:79281
RHEL 8 nscd +213 2.28-251.el8_10.43 RHSA-2026:76777
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 glibc +227 2.43-8.1.hum1 RHSA-2026:53069

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 glibc +220 2.39-142.el10_2.alma.1 ALSA-2026:76781
AlmaLinux 9 nscd +214 2.34-283.el9_8 ALSA-2026:79281
AlmaLinux 8 nscd +213 2.28-251.el8_10.43 ALSA-2026:76777

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 glibc 2.39-142.el10_2 RLSA-2026:76781
Rocky Linux 9 glibc 2.34-283.el9_8 RLSA-2026:79281
Rocky Linux 8 glibc 2.28-251.el8_10.43 RLSA-2026:76777
ReleasePackageFixed inAdvisory
SLES 15 SP7 glibc 2.38-150600.14.58.1 SUSE-SU-2026:4250-1
SLES 15 SP6 glibc 2.38-150600.14.58.1 SUSE-SU-2026:4250-1
SLES 15 SP5 glibc 2.31-150300.109.1 SUSE-SU-2026:4591-1
SLES 15 SP4 glibc 2.31-150300.109.1 SUSE-SU-2026:4591-1
SLES 12 SP5 glibc 2.22-114.52.2 SUSE-SU-2026:4204-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 glibc 2.40-160000.7.1 SUSE-SU-2026:23934-1
SLES for SAP 15 SP6 glibc 2.38-150600.14.58.1 SUSE-SU-2026:4250-1
SLES for SAP 15 SP5 glibc 2.31-150300.109.1 SUSE-SU-2026:4591-1
SLES for SAP 15 SP4 glibc 2.31-150300.109.1 SUSE-SU-2026:4591-1
SLES 16.0 glibc 2.40-160000.7.1 SUSE-SU-2026:23934-1
SLE Micro 6.2 glibc 2.40-160000.7.1 SUSE-SU-2026:23957-1, SUSE-SU-2026:23929-1
SLE Micro 6.1 glibc 2.38-slfo.1.1_10.1 SUSE-SU-2026:23738-1
SLE Micro 6.0 glibc 2.38-15.1 SUSE-SU-2026:23830-1
SLE Micro 5.5 glibc 2.31-150300.109.1 SUSE-SU-2026:4591-1
SLE Micro 5.4 glibc 2.31-150300.109.1 SUSE-SU-2026:4591-1
SLE Micro 5.3 glibc 2.31-150300.109.1 SUSE-SU-2026:4591-1
SLE HPC 15 SP5 glibc 2.31-150300.109.1 SUSE-SU-2026:4591-1
SLE HPC 15 SP4 glibc 2.31-150300.109.1 SUSE-SU-2026:4591-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed glibc 2.44-1.1 openSUSE-SU-2026:11660-1
openSUSE Leap 16.0 glibc +4 2.40-160000.7.1 openSUSE-SU-2026:21968-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 glibc No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 glibc +220 2.39-145.0.1.el10_2 ELSA-2026-76781
Oracle Linux 9 nscd +214 2.34-283.0.1.el9_8 ELSA-2026-79281
Oracle Linux 8 nscd +213 2.28-251.0.5.el8_10.48 ELSA-2026-76777

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling glibc +27 2.43-r10 —

Advisories 25

References