Null Pointer Dereference Bug in Balloc Function of newlib libc Library

Null Pointer Dereference Bug in Balloc Function of newlib libc Library

CVE-2019-14874 · MEDIUM Severity

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

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.

Learn more about our Web Application Penetration Testing UK.