Vulnerability · Published Mar 5, 2021 · Assigned by redhat

CVE-2021-3420

Critical 9.8

In plain English

A critical-severity integer overflow in newlib. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)2.1%top 18.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20newlib4.1.0-r0ALPINE-CVE-2021-3420
Alpine:v3.21newlib4.1.0-r0ALPINE-CVE-2021-3420
Alpine:v3.22newlib4.1.0-r0ALPINE-CVE-2021-3420
Alpine:v3.23newlib4.1.0-r0ALPINE-CVE-2021-3420
Alpine:v3.24newlib4.1.0-r0ALPINE-CVE-2021-3420
Debian:12newlib3.3.0-1.3+deb12u1DEBIAN-CVE-2021-3420
Debian:13newlib4.4.0.20231231-2DEBIAN-CVE-2021-3420
Debian:14newlib4.4.0.20231231-2DEBIAN-CVE-2021-3420
Debian:12picolibc1.5-1DEBIAN-CVE-2021-3420
Debian:13picolibc1.5-1DEBIAN-CVE-2021-3420
Debian:14picolibc1.5-1DEBIAN-CVE-2021-3420
Ubuntu:22.04:LTSnewlibno fix listedUBUNTU-CVE-2021-3420
Ubuntu:24.04:LTSnewlibno fix listedUBUNTU-CVE-2021-3420

Affected products (as reported)

VendorProductVersions
n/a newlib newlib versions prior to 4.0.0

Weakness: CWE-190

References