Integer Underflow Affecting glibc-langpack-nan package, versions <0:2.26-41.amzn2


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
4.3% (93rd 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-AMZN2-GLIBCLANGPACKNAN-1696263
  • published27 Sept 2021
  • disclosed1 Apr 2020

Introduced: 1 Apr 2020

CVE-2020-6096  (opens in a new tab)
CWE-191  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 glibc-langpack-nan to version 0:2.26-41.amzn2 or higher.
This issue was patched in ALAS2-2021-1605.

NVD Description

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

An exploitable signed comparison vulnerability exists in the ARMv7 memcpy() implementation of GNU glibc 2.30.9000. Calling memcpy() (on ARMv7 targets that utilize the GNU glibc implementation) with a negative value for the 'num' parameter results in a signed comparison vulnerability. If an attacker underflows the 'num' parameter to memcpy(), this vulnerability could lead to undefined behavior such as writing to out-of-bounds memory and potentially remote code execution. Furthermore, this memcpy() implementation allows for program execution to continue in scenarios where a segmentation fault or crash should have occurred. The dangers occur in that subsequent execution and iterations of this code will be executed with this corrupted data.

CVSS Scores

version 3.1