Skip to content
OpenAdvisories
Medium · 6.5 CVE-2019-14875 EUVD-2019-5990GHSA-6frq-6c2m-fj8m

In the __multiply function of the newlib libc library, all versions prior to 3.3.0 (see newlib/libc/stdlib/mprec.c), Balloc is used to allo…

Published Mar 19, 2020 · Updated Aug 5, 2024 · Assigned by redhat

Description

In the __multiply 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 of _x[0] will trigger a null pointer dereference bug in case of a memory allocation failure.

Affected products

VendorProductAffectedFixed
Red Hat newlib all newlib versions prior to 3.3.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 newlib 3.3.0-1 —
Debian 13 newlib 3.3.0-1 —
Debian 12 newlib 3.3.0-1 —
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS newlib No fix yet —
Ubuntu 16.04 LTS newlib No fix yet —

References