NULL pointer dereference in Newlib Project

CVE-2019-14877

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.

EPSS: 0.013 (68.2th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2019-14877?
CVE-2019-14877 is a medium-severity vulnerability in Newlib Project, classified under NULL Pointer Dereference. CVSS score: 6.5/10. Published 2020-03-19.
How severe is CVE-2019-14877?
Medium severity. CVSS v3 base score is 6.5 out of 10.