{"id":"ALPINE-CVE-2021-3420","details":"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.","modified":"2026-11-03T06:32:58.431916445Z","published":"2021-03-05T21:15:13.437Z","upstream":["CVE-2021-3420"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-3420"}],"affected":[{"package":{"name":"newlib","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/newlib?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3420.json"}},{"package":{"name":"newlib","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/newlib?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3420.json"}},{"package":{"name":"newlib","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/newlib?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3420.json"}},{"package":{"name":"newlib","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/newlib?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3420.json"}},{"package":{"name":"newlib","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/newlib?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3420.json"}},{"package":{"name":"newlib","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/newlib?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3420.json"}},{"package":{"name":"newlib","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/newlib?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3420.json"}},{"package":{"name":"newlib","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/newlib?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3420.json"}},{"package":{"name":"newlib","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/newlib?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3420.json"}},{"package":{"name":"newlib","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/newlib?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3420.json"}},{"package":{"name":"newlib","ecosystem":"Alpine:v3.24","purl":"pkg:apk/alpine/newlib?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-3420.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}