CVE-2019-14876
NixOS vulnerability analysis and mitigation

Overview

In the __lshift 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 to b1 will trigger a null pointer dereference bug in case of a memory allocation failure (CENSUS Advisory, NVD).

Technical details

The vulnerability is classified as a NULL Pointer Dereference (CWE-476) issue. The bug occurs in the __lshift function where Balloc is used to allocate memory for a big integer, but the code fails to verify if the allocation was successful. When memory allocation fails, subsequent access to b1 triggers a null pointer dereference. The vulnerability has a CVSS v3.1 Base Score of 6.5 MEDIUM (Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) (NVD).

Impact

When exploited, this vulnerability can lead to a null pointer dereference, potentially causing a system crash or denial of service. On embedded systems where the Device Vector Table is mapped at address 0x0, reading from or writing to this address may leak interrupt handler addresses or allow overwriting of interrupt handlers (CENSUS Advisory).

Mitigation and workarounds

Users are strongly advised to update to newlib version 3.3.0 or later, which includes patches for this vulnerability. When building the library, it's recommended to enable the newlib-reent-check-verify 'configure' option. For devices that cannot be updated, implementing memory protection for pages near the 0x0 address can help limit the implications of such attacks (CENSUS Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20806MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20805MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20804MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20803MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management