{"id":"UBUNTU-CVE-2019-14877","details":"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.","modified":"2025-10-24T04:47:46Z","published":"2020-03-19T16:15:00Z","upstream":["CVE-2019-14877"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2019-14877"},{"type":"REPORT","url":"https://census-labs.com/news/2020/01/31/multiple-null-pointer-dereference-vulnerabilities-in-newlib/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2019-14877"}],"affected":[{"package":{"name":"newlib","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/newlib@2.2.0+git20150830.5a3d536-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.0+git20141201.db59ff3-2","2.2.0+git20150830.5a3d536-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.2.0+git20150830.5a3d536-1","binary_name":"libnewlib-arm-none-eabi"},{"binary_version":"2.2.0+git20150830.5a3d536-1","binary_name":"libnewlib-dev"},{"binary_version":"2.2.0+git20150830.5a3d536-1","binary_name":"newlib-source"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-14877.json"}},{"package":{"name":"newlib","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/newlib@2.4.0.20160527-3ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.0.20160527-2","2.4.0.20160527-3","2.4.0.20160527-3ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.4.0.20160527-3ubuntu0.1","binary_name":"libnewlib-arm-none-eabi"},{"binary_version":"2.4.0.20160527-3ubuntu0.1","binary_name":"libnewlib-dev"},{"binary_version":"2.4.0.20160527-3ubuntu0.1","binary_name":"newlib-source"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-14877.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}