CVE-2021-35942
Vulnerability Summary
Timeline
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.
CVSS Metrics
- v3.1•CRITICAL•Score: 9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- v2.0•MEDIUM•Score: 6.4AV:N/AC:L/Au:N/C:P/I:N/A:P
EPSS Trends
Current EPSS score: 1.41%• Percentile: 81%
Techniques & Countermeasures
- CWE-190•Integer Overflow or Wraparound
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
- CWE-704•Incorrect Type Conversion or Cast
The product does not correctly convert an object, resource, or structure from one type to a different type.
Affected Systems
- debian•debian_linux
10.0
- gnu•glibc
< 2.31
- netapp•active_iq_unified_manager
na
- netapp•e-series_santricity_os_controller
≥ 11.0, ≤ 11.70.1
- netapp•hci_management_node
na
- netapp•ontap_select_deploy_administration_utility
na
- netapp•solidfire
na
References (6)
- 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/
- https://security.gentoo.org/glsa/202208-24
- https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html