Integer Overflow or Wraparound Affecting glibc package, versions [,2.32)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.09% (85th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-GLIBC-2319105
  • published14 Dec 2021
  • disclosed22 Jul 2021
  • creditUnknown

Introduced: 22 Jul 2021

CVE-2021-35942  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade glibc to version 2.32 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. 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.

References

CVSS Scores

version 3.1