Skip to content
OpenAdvisories
Critical · 9.1 CVE-2021-35942 EUVD-2021-22577GHSA-53wq-r63f-m33q

The wordexp function in the GNU C Library (aka glibc) through 2.33 may crash or read arbitrary memory in parse_param (in posix/wordexp.c) w…

Published Jul 22, 2021 · Updated Oct 14, 2026 · Assigned by mitre

Description

The wordexp function in the GNU C Library (aka glibc) through 2.33 may crash or read arbitrary memory in parse_param (in posix/wordexp.c) when called with an untrusted, crafted pattern, potentially resulting in a denial of service or disclosure of information. This occurs because atoi was used but strtoul should have been used to ensure correct calculations.

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.31-13 —
Debian 13 glibc 2.31-13 —
Debian 12 glibc 2.31-13 —
Debian 10 glibc 2.28-10+deb10u2 DLA-3152-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS glibc 2.31-0ubuntu9.7 USN-5310-1
Ubuntu 18.04 LTS glibc 2.27-3ubuntu1.5 USN-5310-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS glibc 2.23-0ubuntu11.3+esm2 USN-5699-1
Ubuntu Pro 14.04 LTS eglibc No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 nscd +212 2.28-164.el8 RHSA-2021:4358

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 nss_hesiod +5 2.28-164.el8 ALSA-2021:4358

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 glibc 2.28-164.el8 RLSA-2021:4358
ReleasePackageFixed inAdvisory
SLES 15 SP3 glibc 2.31-9.3.2 SUSE-SU-2021:3291-1
SLES 15 SP2 glibc 2.26-13.59.1 SUSE-SU-2021:3385-1
SLES 15 SP1 glibc 2.26-13.59.1 SUSE-SU-2021:3385-1
SLES 15 glibc 2.26-13.59.1 SUSE-SU-2021:3385-1
SLES 12 SP5 glibc 2.22-114.12.1 SUSE-SU-2021:2480-1
Show 16 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP3 glibc 2.22-116.1 SUSE-SU-2021:3289-1
SLES 12 SP2 glibc 2.22-116.1 SUSE-SU-2021:3289-1
SLES 11 SP4 glibc 2.11.3-17.110.37.1 SUSE-SU-2021:14822-1
SLES for SAP 15 SP1 glibc 2.26-13.59.1 SUSE-SU-2021:3385-1
SLES for SAP 15 glibc 2.26-13.59.1 SUSE-SU-2021:3385-1
SLES for SAP 12 SP5 glibc 2.22-114.12.1 SUSE-SU-2021:2480-1
SLES for SAP 12 SP3 glibc 2.22-116.1 SUSE-SU-2021:3289-1
SLE Micro 5.1 glibc 2.31-9.3.2 SUSE-SU-2021:3291-1
SLE Micro 5.0 glibc 2.26-13.59.1 SUSE-SU-2021:3385-1
SLE HPC 15 SP1 glibc 2.26-13.59.1 SUSE-SU-2021:3385-1
SLE HPC 15 glibc 2.26-13.59.1 SUSE-SU-2021:3385-1
SUSE OpenStack Cloud Crowbar 8 glibc 2.22-116.1 SUSE-SU-2021:3289-1
SUSE OpenStack Cloud 8 glibc 2.22-116.1 SUSE-SU-2021:3289-1
SUSE Linux Enterprise Point of Sale 11 SP3 glibc 2.11.3-17.110.37.1 SUSE-SU-2021:14822-1
SUSE HPE Helion OpenStack 8 glibc 2.22-116.1 SUSE-SU-2021:3289-1
SUSE Enterprise Storage 6 glibc 2.26-13.59.1 SUSE-SU-2021:3385-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed glibc 2.38-6.1 openSUSE-SU-2024:13388-1
openSUSE Leap 15.3 glibc 2.31-9.3.2 openSUSE-SU-2021:3291-1
openSUSE Leap 15.2 glibc +1 2.26-lp152.26.9.1 openSUSE-SU-2021:1374-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 nscd +199 2.26-53.amzn2 ALAS2-2021-1703

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 nscd +211 2.28-164.0.1.el8 ELSA-2021-4358

Advisories 23

References