newlib, picolibc — security advisory
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.
- Products
- newlib, picolibc
- Affected versions
- 3.3.0-1.3
- Fixed versions
- 1.5-1, 3.3.0-1.3+deb12u1, 4.4.0.20231231-2
- CVEs
- CVE-2021-3420
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:35 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2021-3420
newlib
Fixed versions: 3.3.0-1.3+deb12u1
newlib
Fixed versions: 4.4.0.20231231-2
newlib
Fixed versions: 4.4.0.20231231-2
picolibc
Fixed versions: 1.5-1
picolibc
Fixed versions: 1.5-1
picolibc
Fixed versions: 1.5-1
Complete source record
{
"id": "295b8ef8eceba44d16e4362c5589e8376d21820f85877b50c010279de2c1e1f4",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-3420",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2021-3420",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2021-3420",
"products": [
{
"name": {
"value": "newlib",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "3.3.0-1.3+deb12u1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "3.3.0-1.3",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "newlib",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.4.0.20231231-2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "newlib",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "4.4.0.20231231-2",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "picolibc",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.5-1",
"evidence": "/affected/3/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "picolibc",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.5-1",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "picolibc",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.5-1",
"evidence": "/affected/5/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "DEBIAN-CVE-2021-3420",
"aliases": [
"DEBIAN-CVE-2021-3420"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.3.0-1.3+deb12u1"
}
]
}
],
"package": {
"name": "newlib",
"purl": "pkg:deb/debian/newlib?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"3.3.0-1.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3420.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.4.0.20231231-2"
}
]
}
],
"package": {
"name": "newlib",
"purl": "pkg:deb/debian/newlib?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3420.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "4.4.0.20231231-2"
}
]
}
],
"package": {
"name": "newlib",
"purl": "pkg:deb/debian/newlib?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3420.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.5-1"
}
]
}
],
"package": {
"name": "picolibc",
"purl": "pkg:deb/debian/picolibc?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3420.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.5-1"
}
]
}
],
"package": {
"name": "picolibc",
"purl": "pkg:deb/debian/picolibc?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3420.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.5-1"
}
]
}
],
"package": {
"name": "picolibc",
"purl": "pkg:deb/debian/picolibc?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3420.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:03:27.667852985Z",
"provider": "osv",
"upstream": [
"CVE-2021-3420"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-3420"
]
},
"related_cves": [
{
"value": "CVE-2021-3420",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 421574,
"published_at": "2021-03-05T21:15:13.437+00:00"
}