Integer overflow in Newlib Project

CVE-2021-3420

A flaw was found in newlib in versions prior to 4.0.0. Improper overflow validation in the memory allocation functions mEMALIGn, pvALLOc, nano_memalign, nano_valloc, nano_pvalloc could case an integer overflow, leading to an allocation of a small buffer and then to a heap-based buffer overflow.

Vulnerability class: Integer Overflow

EPSS: 0.021 (79.8th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2021-3420?
CVE-2021-3420 is a critical-severity vulnerability in Newlib Project, classified under Integer Overflow or Wraparound. CVSS score: 9.8/10. Published 2021-03-05.
How severe is CVE-2021-3420?
Critical severity. CVSS v3 base score is 9.8 out of 10.