NULL Pointer Dereference Affecting newlib package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.49% (74th 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-UBUNTU1804-NEWLIB-544122
  • published1 Feb 2020
  • disclosed19 Mar 2020

Introduced: 1 Feb 2020

CVE-2019-14876  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:18.04 newlib.

NVD Description

Note: Versions mentioned in the description apply only to the upstream newlib package and not the newlib package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

In the __lshift function of the newlib libc library, all versions prior to 3.3.0 (see newlib/libc/stdlib/mprec.c), Balloc is used to allocate a big integer, however no check is performed to verify if the allocation succeeded or not. The access to b1 will trigger a null pointer dereference bug in case of a memory allocation failure.

CVSS Base Scores

version 3.1