CVE-2019-14871 Null dereference in newlib

Medium 6.5 Published Updated

A null pointer dereference in newlib macros can cause a denial of service in production firmware builds due to unchecked memory allocation failures.

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-14871?

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

Official description

The REENT_CHECK macro (see newlib/libc/include/sys/reent.h) as used by REENT_CHECK_TM, REENT_CHECK_MISC, REENT_CHECK_MP and other newlib macros in versions prior to 3.3.0, does not check for memory allocation problems when the DEBUG flag is unset (as is the case in production firmware builds).

Weakness: CWE-476

Which versions are affected by CVE-2019-14871?

It affects 1 product.

Products include Newlib Project Newlib.

How do I fix CVE-2019-14871?

Upgrade to a fixed version.

Is CVE-2019-14871 being exploited?

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

Sources

Also known as DEBIAN-CVE-2019-14871, GHSA-2q4g-qm2f-cq2j, UBUNTU-CVE-2019-14871.

Is CVE-2019-14871 in your software?

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

Check your SBOMs for free