CVE-2021-3420

CRITICAL

newlib < 4.0.0 - Heap-Based Buffer Overflow via Integer Overflow in Memory Allocation Functions

Title source: llm
STIX 2.1

Description

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.

References (4)

Core 4
Core References
Broken Link, Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://bugzilla.redhat.com/show_bug.cgi?id=1934088

Scores

CVSS v3 9.8
EPSS 0.0210
EPSS Percentile 79.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-190
Status published
Products (4)
fedoraproject/fedora 32
fedoraproject/fedora 33
fedoraproject/fedora 34
newlib_project/newlib < 4.0.0
Published Mar 05, 2021
Tracked Since Feb 18, 2026