Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Red Hat / newlib | affected all newlib versions prior to 3.3.0 |
CWE
CWE-476
References
- https://census-labs.com/news/2020/01/31/multiple-null-pointer-dereference-vulnerabilities-in-newlib/
ADP enrichment
No English description supplied.