CVE-2021-3420Integer Overflow or Wraparound in Project Newlib

Severity
9.8CRITICALNVD
EPSS
0.1%
top 66.07%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMar 5
Latest updateMay 24

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages5 packages

debiandebian/newlib< newlib 3.3.0-1.3+deb12u1 (bookworm)
Debiannewlib_project/newlib< 3.3.0-1.3+deb12u1+2
CVEListV5newlib_project/newlibnewlib versions prior to 4.0.0
debiandebian/picolibc< newlib 3.3.0-1.3+deb12u1 (bookworm)

Also affects: Fedora 32, 33, 34

Patches

🔴Vulnerability Details

2
GHSA
GHSA-wp32-4vw5-mw9c: A flaw was found in newlib in versions prior to 42022-05-24
OSV
CVE-2021-3420: A flaw was found in newlib in versions prior to 42021-03-05

📋Vendor Advisories

2
CISA ICS
Multiple RTOS (Update E)2021-11-30
Debian
CVE-2021-3420: newlib - A flaw was found in newlib in versions prior to 4.0.0. Improper overflow validat...2021