Vulnerability · Published Jul 22, 2021 · Assigned by mitre
CVE-2021-35942
Critical 9.1
In plain English
A critical-severity security flaw in the compat-libpthread-nonshared package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.8% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | compat-libpthread-nonshared | 2.28-164.el8 | ALSA-2021:4358 |
| AlmaLinux:8 | glibc-benchtests | 2.28-164.el8 | ALSA-2021:4358 |
| AlmaLinux:8 | glibc-nss-devel | 2.28-164.el8 | ALSA-2021:4358 |
| AlmaLinux:8 | glibc-static | 2.28-164.el8 | ALSA-2021:4358 |
| AlmaLinux:8 | glibc-utils | 2.28-164.el8 | ALSA-2021:4358 |
| AlmaLinux:8 | nss_hesiod | 2.28-164.el8 | ALSA-2021:4358 |
| Debian:12 | glibc | 2.31-13 | DEBIAN-CVE-2021-35942 |
| Debian:13 | glibc | 2.31-13 | DEBIAN-CVE-2021-35942 |
| Debian:14 | glibc | 2.31-13 | DEBIAN-CVE-2021-35942 |
| Rocky Linux:8 | glibc | 0:2.28-164.el8 | RLSA-2021:4358 |
Affected products (as reported)
Weakness: CWE-704 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
References
- https://sourceware.org/glibc/wiki/Security%20Exceptions
- https://sourceware.org/bugzilla/show_bug.cgi?id=28011
- https://sourceware.org/git/?p=glibc.git%3Ba=commit%3Bh=5adda61f62b77384718b4c0d8336ade8f2b4b35c
- https://security.netapp.com/advisory/ntap-20210827-0005/
- GLSA-202208-24 vendor-advisory
- [debian-lts-announce] 20221017 [SECURITY] [DLA 3152-1] glibc security update mailing-list
- https://cert-portal.siemens.com/productcert/html/ssa-831302.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html