CVE-2021-35942: Integer Overflow

Published Jun 30, 2021
·
Updated

An integer overflow flaw was found in glibc before 2.34 that may result in reading of arbitrary memory when wordexp is used with a specially crafted untrusted regular expression input.

References:

https://sourceware.org/bugzilla/showbug.cgi?id=28011 https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=5adda61f62b77384718b4c0d8336ade8f2b4b35c https://sourceware.org/glibc/wiki/Security%20Exceptions

Other sources

The wordexp function in the GNU C Library (aka glibc) through 2.33 may crash or read arbitrary memory in parseparam (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.

— Launchpad

Affected Software

16 affected componentsFixes available
GNU glibc<2.32
NetApp Active Iq Unified Manager Vmware Vsphere
NetApp E-Series SANtricity OS Controller>=11.0<=11.70.1
NetApp Hci Management Node
NetApp ONTAP Select Deploy administration utility
NetApp Solidfire
Debian Debian Linux=10.0
debian/glibc
2.31-13+deb11u112.31-13+deb11u102.36-9+deb12u102.36-9+deb12u72.41-7
IBM Watson Studio on Cloud Pak for Data<=4.0
IBM Watson Studio on Cloud Pak for Data<=5.0
GNU glibc<2.31
redhat/glibc<2.34
2.34
ubuntu/eglibc*
ubuntu/glibc<2.23-0ubuntu11.3+esm2
2.23-0ubuntu11.3+esm2
ubuntu/glibc<2.27-3ubuntu1.5
2.27-3ubuntu1.5
ubuntu/glibc<2.31-0ubuntu9.7
2.31-0ubuntu9.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/glibc to a version that resolves this vulnerability.

    Fixed in 2.31-13+deb11u11Fixed in 2.31-13+deb11u10Fixed in 2.36-9+deb12u10Fixed in 2.36-9+deb12u7Fixed in 2.41-7
  2. Upgrade

    Upgrade redhat/glibc to a version that resolves this vulnerability.

    Fixed in 2.34
  3. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.23-0ubuntu11.3+esm2
  4. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.27-3ubuntu1.5
  5. Upgrade

    Upgrade ubuntu/glibc to a version that resolves this vulnerability.

    Fixed in 2.31-0ubuntu9.7
  6. Upgrade

    Upgrade glibc to a version that resolves this vulnerability.

    Fixed in 2.34

Event History

Jun 30, 2021
Data Sourced
via Red Hat·08:04 PM
DescriptionSeverityAffected Software
Jul 22, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via MITRE·12:00 AM
Description
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Data Sourced
via OSV·06:15 PM
DescriptionSeverityAffected Software
Data Sourced
06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeaknessAffected Software
Nov 21, 2024
Updated
via NVD·06:12 AM
Affected Software
Aug 28, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Feb 13, 2026
Updated
via NVD·09:16 PM
SeverityWeaknessAffected Software
Oct 14, 2026
Updated
via NVD·12:17 PM
SeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2021-35942?

CVE-2021-35942 is a vulnerability in the GNU C Library (glibc) through version 2.33 that can result in a denial of service or disclosure of information.

2

What is the severity of CVE-2021-35942?

The severity of CVE-2021-35942 is critical with a CVSS score of 9.1.

3

How does CVE-2021-35942 affect GNU glibc?

CVE-2021-35942 affects GNU glibc through version 2.33 and may cause crashes or read arbitrary memory.

4

How can CVE-2021-35942 be exploited?

CVE-2021-35942 can be exploited by calling the wordexp function in GNU glibc with an untrusted, crafted pattern.

5

How can I fix CVE-2021-35942?

To fix CVE-2021-35942, update GNU glibc to a version beyond 2.33 when it becomes available.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203