NULL Pointer Dereference Affecting newlib package, versions <3.3.0-1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.3% (70th 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-DEBIAN14-NEWLIB-11761847
  • published10 Aug 2025
  • disclosed19 Mar 2020

Introduced: 19 Mar 2020

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

How to fix?

Upgrade Debian:14 newlib to version 3.3.0-1 or higher.

NVD Description

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

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

CVSS Base Scores

version 3.1