CVE-2019-14874 Null dereference in newlib

Medium 6.5 Published Updated

A null pointer dereference in newlib's __i2b function allows attackers to cause a denial of service via memory allocation failure.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-14874?

CVE-2019-14874 is a medium-severity vulnerability in Red Hat newlib, published on 19 Mar 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-476

Which versions are affected by CVE-2019-14874?

It affects 1 product.

Products include Newlib Project Newlib.

How do I fix CVE-2019-14874?

Upgrade to a fixed version.

Is CVE-2019-14874 being exploited?

There is no known exploitation of CVE-2019-14874 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2019-14874, GHSA-wc8v-w7xh-26xj, UBUNTU-CVE-2019-14874.

Is CVE-2019-14874 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free