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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | newlib | 4.1.0-r0 | ALPINE-CVE-2021-3420 |
| Alpine:v3.21 | newlib | 4.1.0-r0 | ALPINE-CVE-2021-3420 |
| Alpine:v3.22 | newlib | 4.1.0-r0 | ALPINE-CVE-2021-3420 |
| Alpine:v3.23 | newlib | 4.1.0-r0 | ALPINE-CVE-2021-3420 |
| Alpine:v3.24 | newlib | 4.1.0-r0 | ALPINE-CVE-2021-3420 |
| Debian:12 | newlib | 3.3.0-1.3+deb12u1 | DEBIAN-CVE-2021-3420 |
| Debian:13 | newlib | 4.4.0.20231231-2 | DEBIAN-CVE-2021-3420 |
| Debian:14 | newlib | 4.4.0.20231231-2 | DEBIAN-CVE-2021-3420 |
| Debian:12 | picolibc | 1.5-1 | DEBIAN-CVE-2021-3420 |
| Debian:13 | picolibc | 1.5-1 | DEBIAN-CVE-2021-3420 |
| Debian:14 | picolibc | 1.5-1 | DEBIAN-CVE-2021-3420 |
| Ubuntu:22.04:LTS | newlib | no fix listed | UBUNTU-CVE-2021-3420 |
| Ubuntu:24.04:LTS | newlib | no fix listed | UBUNTU-CVE-2021-3420 |
Affected products (as reported)
Weakness: CWE-190
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1934088 x_refsource_MISC
- FEDORA-2021-332fb9c796 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-267c08cc40 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-0fa2f42d3c vendor-advisory, x_refsource_FEDORA