Name | CVE-2019-14877 |
Description | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
newlib (PTS) | jessie | 2.1.0+git20140818.1a8323b-2 | vulnerable |
stretch | 2.4.0.20160527-2 | vulnerable | |
buster | 3.1.0.20181231-1 | vulnerable | |
bullseye | 3.3.0-1 | fixed | |
bookworm | 3.3.0-1.3+deb12u1 | fixed | |
sid, trixie | 4.4.0.20231231-4 | fixed | |
picolibc (PTS) | bullseye | 1.5.1-2 | fixed |
bookworm | 1.8-1 | fixed | |
sid, trixie | 1.8.8-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
newlib | source | (unstable) | 3.3.0-1 | |||
picolibc | source | (unstable) | 1.4.3-1 |
[buster] - newlib <no-dsa> (Minor issue)
[stretch] - newlib <no-dsa> (Minor issue)
[jessie] - newlib <ignored> (Minor issue)
https://census-labs.com/news/2020/01/31/multiple-null-pointer-dereference-vulnerabilities-in-newlib/
https://keithp.com/blogs/picolibc-string-float/