VDB
CVE-2021-3420
CVE-2021-3420
PUBLISHED
Reported by redhat · Published March 5, 2021
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| newlib | Alpine | 4.1.0-r0 |
| newlib | newlib_project | 4.0.0 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | newlib | newlib versions prior to 4.0.0 |
| alpine | newlib | 0 |
| n/a | newlib | 4.0.0 |
Timeline
- Mar 5, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Aug 3, 2024 CVE Updated
- Jun 2, 2026 Security Advisory
- Jul 30, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-3420
vulnetix vdb fixes CVE-2021-3420
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3420/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- FEDORA-2021-332fb9c796 vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-267c08cc40 vendor-advisoryx_refsource_FEDORA
- FEDORA-2021-0fa2f42d3c vendor-advisoryx_refsource_FEDORA