CVE-2019-14877: Null Pointer Dereference
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.
Affected Software
Event History
Frequently Asked Questions
What is CVE-2019-14877?
CVE-2019-14877 is a vulnerability in the __mdiff function of the newlib libc library prior to version 3.3.0.
How severe is CVE-2019-14877?
CVE-2019-14877 has a severity value of 6.5, categorized as medium.
What is the affected software for CVE-2019-14877?
The affected software for CVE-2019-14877 is Newlib Project Newlib versions prior to 3.3.0.
How can CVE-2019-14877 be exploited?
CVE-2019-14877 can be exploited by triggering a null pointer dereference when accessing certain variables in the __mdiff function.
Is there a fix for CVE-2019-14877?
To fix CVE-2019-14877, users should update to version 3.3.0 or later of the newlib libc library.