cve.bz

CVE-2021-35942 Year 2038 problem, Y2K38, Y2038, Epochalypse

9.1 criticalEPSS 2.8%

Critical (9.1). EPSS 2.8% estimated probability of exploitation activity in the next 30 days.

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

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS
2.8% (unchanged from 2.8% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-02-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
CWE-704 Incorrect Type Conversion or Cast
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-35942 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-35942?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-35942?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-2021-35942 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.

Badge for a README or a site

CVE-2021-35942

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-35942](https://cve.bz/cve/badge/CVE-2021-35942.svg)](https://cve.bz/cve/CVE-2021-35942)

HTML:

<a href="https://cve.bz/cve/CVE-2021-35942"><img src="https://cve.bz/cve/badge/CVE-2021-35942.svg" alt="CVE-2021-35942"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gnu:glibcbefore 2.31
netapp:e-series_santricity_os_controllerfrom 11.0 through 11.70.1
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10glibc2.28-10+deb10u2DLA-3152-1
Debian12, 13, 14glibc2.31-13DEBIAN-CVE-2021-35942
Ubuntu18.04:LTSglibc2.27-3ubuntu1.5UBUNTU-CVE-2021-35942 USN-5310-1
Ubuntu20.04:LTSglibc2.31-0ubuntu9.7UBUNTU-CVE-2021-35942 USN-5310-1
UbuntuPro:14.04:LTSeglibcno fix listedUBUNTU-CVE-2021-35942
UbuntuPro:16.04:LTSglibc2.23-0ubuntu11.3+esm2UBUNTU-CVE-2021-35942 USN-5699-1
Red Hatenterprise_linux:8::appstreamglibc-utils, glibc-debuginfo, glibc-debuginfo-common and 1 more0:2.28-164.el8RHSA-2021:4358
Red Hatenterprise_linux:8::baseosnscd, glibc, libnsl and 205 more0:2.28-164.el8RHSA-2021:4358
Red Hatenterprise_linux:8::crbnss_hesiod, glibc-static, glibc-debuginfo and 3 more0:2.28-164.el8RHSA-2021:4358
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 10 moreglibc2.26-13.59.1SUSE-SU-2021:3385-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 4 moreglibc2.22-116.1SUSE-SU-2021:3289-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Module for Basesystem 15 SP3, Linux Enterprise Module for Development Tools 15 SP3glibc2.31-9.3.2SUSE-SU-2021:3291-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSglibc2.11.3-17.110.37.1SUSE-SU-2021:14822-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5glibc2.22-114.12.1SUSE-SU-2021:2480-1
openSUSELeap 15.2glibc, glibc-testsuite-src2.26-lp152.26.9.1openSUSE-SU-2021:1374-1
openSUSELeap 15.3glibc2.31-9.3.2openSUSE-SU-2021:3291-1
openSUSETumbleweedglibc2.38-6.1openSUSE-SU-2024:13388-1
AlmaLinux8nss_hesiod, glibc-utils, glibc-static and 3 more2.28-164.el8ALSA-2021:4358
Rocky Linux8glibc0:2.28-164.el8RLSA-2021:4358

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This is an integer overflow flaw in wordexp(), caused by a specially crafted untrusted regular expression input. It can result in arbitrary memory read. The upstream glibc project generally does not consider bugs due to untrusted inputs as security issues, but this is an exception since it invokes undefined behaviour in glibc. In general, use of untrusted regular expression input is strongly discouraged. This flaw has been rated as having a security impact of Moderate as no application shipped with Red Hat Enterprise Linux passes untrusted data to wordexp() by default.

Red Hat's mitigation

Do not use untrusted regular expression input for the wordexp() function.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8glibc-0:2.28-164.el8Fixed 2021-11-09RHSA-2021:4358
Red Hat Enterprise Linux 6compat-glibcOut of support scope
Red Hat Enterprise Linux 6glibcOut of support scope
Red Hat Enterprise Linux 7compat-glibcOut of support scope
Red Hat Enterprise Linux 7glibcOut of support scope
Red Hat Enterprise Linux 9glibcNot affected

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-2021-35942.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-348-10Siemens SIMATIC S7-15002023-12-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 morenone listed
ICSA-23-166-10Siemens SIMATIC S7-1500 TM MFP BIOS2023-06-13MultipleSIMATIC S7-1500 TM MFP - BIOSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON