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
Published · last modified .
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.
EPSS exploit prediction
EPSS 0.021, 82.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Newlib Project
- Fedoraproject Fedora — versions 32, 33, 34
- Newlib — versions newlib versions prior to 4.0.0
Weakness classification (CWE)
References
- bugzilla.redhat.com/show_bug.cgi (Patch, Third Party Advisory, Issue Tracking, Broken Link)
- FEDORA-2021-332fb9c796 (vendor-advisory)
- FEDORA-2021-267c08cc40 (vendor-advisory)
- FEDORA-2021-0fa2f42d3c (vendor-advisory)