{"id":"CVE-2021-3420","aliases":["CVE-2021-3420"],"related":[],"kind":"vulnerability","state":"published","title":"A flaw was found in newlib in versions prior to 4.0.0.","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se encontró un fallo en newlib en versiones anteriores a 4.0.0.&#xa0;Una comprobación inapropiada del desbordamiento en las funciones de asignación de memoria mEMALIGn, pvALLOc, nano_memalign, nano_valloc, nano_pvalloc podría causar un desbordamiento de enteros, conllevando a una asignación de un búfer pequeño y luego a un desbordamiento de búfer en la región heap de la memoria","source":"nvd"}],"published":"2021-03-05T19:19:28.000Z","modified":"2026-06-17T04:05:03.413Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":"newlib versions prior to 4.0.0","status":"affected"}],"product":"newlib","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.0.0"}],"vendor":"newlib_project","product":"newlib","cpe":"cpe:2.3:a:newlib_project:newlib:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"32"},{"status":"affected","version":"33"},{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1934088","tags":["broken-link","issue-tracking","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AEBF6YHWFNCBW5A2ENSQ3Z56ELF4MTRE/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LSQZEUANAWBBAOC4TF5PTPJVLMUR7SFD/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AMK54N6UOPBFFX2YT32TWSAEFTHGSKAA/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3420","url":"https://www.cve.org/CVERecord?id=CVE-2021-3420","licence":"CVE Terms of Use","modified":"2024-08-03T16:53:17.747Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3420","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3420","licence":"Public domain","modified":"2026-06-17T04:05:03.413Z"}],"updatedAt":"2026-11-25T22:58:00.170Z","epss":{"score":0.02129,"percentile":0.82643,"date":"2026-11-30T12:00:22.000Z"}}