{"id":"CVE-2021-3420","aliases":["ALPINE-CVE-2021-3420","DEBIAN-CVE-2021-3420","EUVD-2021-26748","GHSA-wp32-4vw5-mw9c","UBUNTU-CVE-2021-3420","openSUSE-SU-2024:11086-1"],"status":"published","title":"A flaw was found in newlib in versions prior to 4.0.0. Improper overflow validation in the memory...","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.02103,"percentile":0.81883,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-120","CWE-190"],"published":"2021-03-05T19:19:28Z","modified":"2026-11-03T06:32:58Z","fixes":[{"ecosystem":"Alpine:v3.14","package":"newlib","fixed_in":["4.1.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"newlib","fixed_in":["4.1.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"newlib","fixed_in":["4.1.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"newlib","fixed_in":["4.1.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"newlib","fixed_in":["4.1.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"newlib","fixed_in":["4.1.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"newlib","fixed_in":["4.1.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"newlib","fixed_in":["4.1.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"newlib","fixed_in":["4.1.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"newlib","fixed_in":["4.1.0-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"newlib","fixed_in":["4.1.0-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"newlib","fixed_in":["3.3.0-1.3+deb12u1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"newlib","fixed_in":["4.4.0.20231231-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"newlib","fixed_in":["4.4.0.20231231-2"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"picolibc","fixed_in":["1.5-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"picolibc","fixed_in":["1.5-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"picolibc","fixed_in":["1.5-1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"newlib","fixed_in":["4.1.0-2.2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.14","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.0-1.3+deb12u1"}]}],"versions":["3.3.0-1.3"]},{"source":"osv","ecosystem":"Debian:13","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.4.0.20231231-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.4.0.20231231-2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"picolibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"picolibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"picolibc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.0+git20141201.db59ff3-2","2.2.0+git20150830.5a3d536-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.0.20160527-2","2.4.0.20160527-3","2.4.0.20160527-3ubuntu0.1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.0.20181231-1","3.3.0-0ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3.0-1","3.3.0-1.2","3.3.0-1.3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3.0-1.3","4.4.0.20231231-2"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"newlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.0-2.2"}]}]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"newlib_project","product":"newlib"},{"vendor":"red hat","product":"newlib"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1934088","tags":["x_refsource_MISC","x_transferred","Broken Link","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AEBF6YHWFNCBW5A2ENSQ3Z56ELF4MTRE/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LSQZEUANAWBBAOC4TF5PTPJVLMUR7SFD/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AMK54N6UOPBFFX2YT32TWSAEFTHGSKAA/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3420"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AEBF6YHWFNCBW5A2ENSQ3Z56ELF4MTRE/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AMK54N6UOPBFFX2YT32TWSAEFTHGSKAA/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LSQZEUANAWBBAOC4TF5PTPJVLMUR7SFD/"},{"url":"https://github.com/advisories/GHSA-wp32-4vw5-mw9c"},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-3420","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3420","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3420","tags":["report"]},{"url":"https://sourceware.org/git/?p=newlib-cygwin.git;a=commit;h=aa106b29a6a8a1b0df9e334704292cbc32f2d44e","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3420","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2021-3420","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2021-3420","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.","status":"published","published":"2021-03-05T19:19:28Z","modified":"2024-08-03T16:53:17.747Z","cwes":["CWE-190"],"updated_at":"2026-11-02T14:33:03.671751Z"}],"euvd":[{"id":"EUVD-2021-26748","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.","status":"published","published":"2021-03-05T19:19:28Z","modified":"2024-08-03T16:53:17Z","updated_at":"2026-11-03T03:25:13.052236Z"}],"ghsa":[{"id":"GHSA-wp32-4vw5-mw9c","title":"A flaw was found in newlib in versions prior to 4.0.0. Improper overflow validation in the memory...","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.","status":"published","published":"2022-05-24T22:01:28Z","modified":"2023-01-30T05:05:13Z","cwes":["CWE-120"],"updated_at":"2026-11-02T14:47:13.441339Z"}],"nvd":[{"id":"CVE-2021-3420","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.","status":"published","published":"2021-03-05T21:15:13.437Z","modified":"2026-06-17T04:05:03.413Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:06:50.399901Z"}],"osv":[{"id":"ALPINE-CVE-2021-3420","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.","status":"published","published":"2021-03-05T21:15:13.437Z","modified":"2026-11-03T06:32:58.431916445Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-03T07:16:09.603409Z"},{"id":"CVE-2021-3420","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.","status":"published","published":"2021-03-05T21:15:13.437Z","modified":"2026-03-14T10:59:49.858307Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:20.13324Z"},{"id":"DEBIAN-CVE-2021-3420","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.","status":"published","published":"2021-03-05T21:15:13.437Z","modified":"2026-10-23T18:03:27.667852985Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:35.233346Z"},{"id":"UBUNTU-CVE-2021-3420","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.","status":"published","published":"2021-03-05T21:15:00Z","modified":"2026-04-22T12:54:56.12509Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:27.870979Z"},{"id":"openSUSE-SU-2024:11086-1","title":"newlib-4.1.0-2.2 on GA media","description":"These are all security issues fixed in the newlib-4.1.0-2.2 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:57:27.344403Z","updated_at":"2026-11-02T16:58:34.894275Z"}]}}
