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 th...
MediumCVSS 6.5
EPSS 1.3%
- Published
- Updated
- Exploit status
- No public exploit known
Description
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 products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/newlib(Debian:12) | < 3.3.0-1 | 3.3.0-1 |
| debian/newlib(Debian:13) | < 3.3.0-1 | 3.3.0-1 |
| debian/newlib(Debian:14) | < 3.3.0-1 | 3.3.0-1 |
| debian/picolibc(Debian:12) | < 1.4.3-1 | 1.4.3-1 |
| debian/picolibc(Debian:13) | < 1.4.3-1 | 1.4.3-1 |
| debian/picolibc(Debian:14) | < 1.4.3-1 | 1.4.3-1 |
| newlib project newlib | < 3.3.0 | 3.3.0 |
| redhat newlib | = all newlib versions prior to 3.3.0 | No fix listed |
References
- Debian Security Tracker CVE-2019-14877 vendor-advisory
- census-labs.com exploit third-party-advisory