CVE Vulnerabilities

CVE-2019-14877

NULL Pointer Dereference

Published: Mar 19, 2020 | Modified: Nov 21, 2024
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
4 MEDIUM
AV:N/AC:L/Au:S/C:N/I:N/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product dereferences a pointer that it expects to be valid but is NULL.

Affected Software

NameVendorStart VersionEnd Version
NewlibNewlib_project*3.3.0 (excluding)
Gcc-snapshotUbuntubionic*
Gcc-snapshotUbuntutrusty*
Gcc-snapshotUbuntuxenial*
NewlibUbuntubionic*
NewlibUbuntueoan*
NewlibUbuntuesm-apps/bionic*
NewlibUbuntuesm-apps/xenial*
NewlibUbuntugroovy*
NewlibUbuntuhirsute*
NewlibUbuntuimpish*
NewlibUbuntukinetic*
NewlibUbuntutrusty*
NewlibUbuntuupstream*
NewlibUbuntuxenial*

Potential Mitigations

References