Skip to content

CVE-2019-14874 In the __i2b 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...

MediumCVSS 6.5 EPSS 1.5%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebianRed Hat

Description

In the __i2b 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.

Upgrade path

10 packages: 7 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/newlib(Ubuntu 16.04) = 2.1.0+git20141201.db59ff3-2; = 2.2.0+git20150830.5a3d536-1; All versions No fix listed No fix yet
ubuntu/newlib(Ubuntu 18.04) = 2.4.0.20160527-2; = 2.4.0.20160527-3; = 2.4.0.20160527-3ubuntu0.1; All versions No fix listed No fix yet
debian/newlib(Debian 12) < 3.3.0-1 3.3.0-1 Fixed
debian/newlib(Debian 13) < 3.3.0-1 3.3.0-1 Fixed
debian/newlib(Debian 14) < 3.3.0-1 3.3.0-1 Fixed
debian/picolibc(Debian 12) < 1.4.3-1 1.4.3-1 Fixed
debian/picolibc(Debian 13) < 1.4.3-1 1.4.3-1 Fixed
debian/picolibc(Debian 14) < 1.4.3-1 1.4.3-1 Fixed
newlib project newlib < 3.3.0 3.3.0 Fixed
redhat newlib = all newlib versions prior to 3.3.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/newlib(Debian:12) < 3.3.0-1 3.3.0-1
debian/newlib(Debian:13) < 3.3.0-1 3.3.0-1
debian/newlib(Debian:14) < 3.3.0-1 3.3.0-1
debian/picolibc(Debian:12) < 1.4.3-1 1.4.3-1
debian/picolibc(Debian:13) < 1.4.3-1 1.4.3-1
debian/picolibc(Debian:14) < 1.4.3-1 1.4.3-1
newlib project newlib < 3.3.0 3.3.0
redhat newlib = all newlib versions prior to 3.3.0 No fix listed
ubuntu/newlib(Ubuntu:16.04) All versions No fix listed
ubuntu/newlib(Ubuntu:16.04) = 2.1.0+git20141201.db59ff3-2 No fix listed
ubuntu/newlib(Ubuntu:16.04) = 2.2.0+git20150830.5a3d536-1 No fix listed
ubuntu/newlib(Ubuntu:18.04) All versions No fix listed
ubuntu/newlib(Ubuntu:18.04) = 2.4.0.20160527-2 No fix listed
ubuntu/newlib(Ubuntu:18.04) = 2.4.0.20160527-3 No fix listed
ubuntu/newlib(Ubuntu:18.04) = 2.4.0.20160527-3ubuntu0.1 No fix listed

References