Skip to content

CVE-2019-14876 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....

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

Description

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.

Upgrade path

10 packages: 4 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
debian/picolibc(Debian 12) = 1.8-1; = 1.8.1-1; = 1.8.2-1; = 1.8.2-2 +19 more No fix listed No fix yet
debian/picolibc(Debian 13) = 1.8.10-2; = 1.8.10-3; = 1.8.11-1; = 1.8.11-2 +4 more No fix listed No fix yet
debian/picolibc(Debian 14) = 1.8.10-2; = 1.8.10-3; = 1.8.11-1; = 1.8.11-2 +4 more No fix listed No fix yet
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
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) All versions No fix listed
debian/picolibc(Debian:12) = 1.8-1 No fix listed
debian/picolibc(Debian:12) = 1.8.1-1 No fix listed
debian/picolibc(Debian:12) = 1.8.10-1 No fix listed
debian/picolibc(Debian:12) = 1.8.10-2 No fix listed
debian/picolibc(Debian:12) = 1.8.10-3 No fix listed
debian/picolibc(Debian:12) = 1.8.11-1 No fix listed
debian/picolibc(Debian:12) = 1.8.11-2 No fix listed
debian/picolibc(Debian:12) = 1.8.11-3 No fix listed
debian/picolibc(Debian:12) = 1.8.11-4 No fix listed
debian/picolibc(Debian:12) = 1.8.12-1 No fix listed
debian/picolibc(Debian:12) = 1.8.2-1 No fix listed
debian/picolibc(Debian:12) = 1.8.2-2 No fix listed
debian/picolibc(Debian:12) = 1.8.4-1 No fix listed
debian/picolibc(Debian:12) = 1.8.5-1 No fix listed
debian/picolibc(Debian:12) = 1.8.5-2 No fix listed
debian/picolibc(Debian:12) = 1.8.6-1 No fix listed
debian/picolibc(Debian:12) = 1.8.6-2 No fix listed
debian/picolibc(Debian:12) = 1.8.7-1 No fix listed
debian/picolibc(Debian:12) = 1.8.8-1 No fix listed
debian/picolibc(Debian:12) = 1.8.8-2 No fix listed
debian/picolibc(Debian:12) = 1.8.9-1 No fix listed
Show 26 more
ProductAffected versionsFixed in
debian/picolibc(Debian:12) = 1.8.9-2 No fix listed
debian/picolibc(Debian:13) All versions No fix listed
debian/picolibc(Debian:13) = 1.8.10-2 No fix listed
debian/picolibc(Debian:13) = 1.8.10-3 No fix listed
debian/picolibc(Debian:13) = 1.8.11-1 No fix listed
debian/picolibc(Debian:13) = 1.8.11-2 No fix listed
debian/picolibc(Debian:13) = 1.8.11-3 No fix listed
debian/picolibc(Debian:13) = 1.8.11-4 No fix listed
debian/picolibc(Debian:13) = 1.8.12-1 No fix listed
debian/picolibc(Debian:14) All versions No fix listed
debian/picolibc(Debian:14) = 1.8.10-2 No fix listed
debian/picolibc(Debian:14) = 1.8.10-3 No fix listed
debian/picolibc(Debian:14) = 1.8.11-1 No fix listed
debian/picolibc(Debian:14) = 1.8.11-2 No fix listed
debian/picolibc(Debian:14) = 1.8.11-3 No fix listed
debian/picolibc(Debian:14) = 1.8.11-4 No fix listed
debian/picolibc(Debian:14) = 1.8.12-1 No fix listed
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