Integer Overflow or Wraparound Affecting glibc-common package, versions <0:2.28-164.el8


Severity

Recommended
medium

Based on Rocky Linux security rating.

Threat Intelligence

EPSS
1.2% (79th 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 Learn

Learn about Integer Overflow or Wraparound vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ROCKY8-GLIBCCOMMON-3282319
  • published3 Feb 2023
  • disclosed22 Jul 2021

Introduced: 22 Jul 2021

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

How to fix?

Upgrade Rocky-Linux:8 glibc-common to version 0:2.28-164.el8 or higher.
This issue was patched in RLSA-2021:4358.

NVD Description

Note: Versions mentioned in the description apply only to the upstream glibc-common package and not the glibc-common package as distributed by Rocky-Linux. See How to fix? for Rocky-Linux:8 relevant fixed versions and status.

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 Base Scores

version 3.1