{"schemaVersion":3,"id":"CVE-2021-3420","aliases":["UBUNTU-CVE-2021-3420","DEBIAN-CVE-2021-3420","openSUSE-SU-2024:11086-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-03-05T19:19:28.000Z","modified":"2024-08-03T16:53:17.747Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.02103,"percentile":0.81448,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02103},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02103,"percentile":0.81448}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02103,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02103,"percentile":0.81448}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"}],"affected":[{"vendor":"debian","product":"newlib","name":"newlib","label":"newlib","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/newlib","purlType":"deb","versions":[{"text":"< 3.3.0-1.3+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 4.4.0.20231231-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.3.0-1.3+deb12u1 | < 4.4.0.20231231-2","eol":null,"hubHref":null},{"vendor":"debian","product":"picolibc","name":"picolibc","label":"picolibc","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/picolibc","purlType":"deb","versions":[{"text":"< 1.5-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.5-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"newlib","name":"newlib","label":"newlib","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/newlib","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"32","noFixRecorded":false,"fixedIn":null},{"text":"33","noFixRecorded":false,"fixedIn":null},{"text":"34","noFixRecorded":false,"fixedIn":null}],"versionsText":"32 | 33 | 34","eol":{"isEol":true,"eolDate":"2021-05-25T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"32","label":"32","eolFrom":"2021-05-25T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"newlib_project","product":"newlib","name":"newlib","label":"newlib","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 4.0.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.0.0","eol":null,"hubHref":"/vendor/newlib_project/newlib"},{"vendor":"opensuse","product":"newlib&distro=openSUSE Tumbleweed","name":"newlib","label":"newlib&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/newlib&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 4.1.0-2.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.1.0-2.2","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1934088","label":"bugzilla.redhat.com/show_bug.cgi?id=1934088","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","Broken Link","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AEBF6YHWFNCBW5A2ENSQ3Z56ELF4MTRE/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LSQZEUANAWBBAOC4TF5PTPJVLMUR7SFD/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AMK54N6UOPBFFX2YT32TWSAEFTHGSKAA/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://ubuntu.com/security/CVE-2021-3420","label":"ubuntu.com/security/CVE-2021-3420","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://sourceware.org/git/?p=newlib-cygwin.git;a=commit;h=aa106b29a6a8a1b0df9e334704292cbc32f2d44e","label":"sourceware.org/git/?p=newlib-cygwin.git;a=commit;h=aa106b29a6a8a1b0df9e334704292cbc32f2d44e","hostname":"sourceware.org","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3420","label":"www.cve.org/CVERecord?id=CVE-2021-3420","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3420","label":"security-tracker.debian.org/tracker/CVE-2021-3420","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2021-3420","label":"www.suse.com/security/cve/CVE-2021-3420","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-03-05T19:19:28.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T16:53:17.747Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T06:49:27.057Z","stale":false,"partial":false}}