# CVE-2021-3420: A flaw was found in newlib in versions prior to 4.0.0.

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.13%, higher than 82% of CVEs (2026-12-01)
- Published: 2021-03-05T19:19:28.000Z
- Modified: 2026-06-17T04:05:03.413Z
- Weaknesses: CWE-190
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- newlib: newlib versions prior to 4.0.0
- newlib_project newlib: before 4.0.0
- fedoraproject fedora: 32; 33; 34

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=1934088> (broken-link, issue-tracking, patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AEBF6YHWFNCBW5A2ENSQ3Z56ELF4MTRE/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LSQZEUANAWBBAOC4TF5PTPJVLMUR7SFD/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AMK54N6UOPBFFX2YT32TWSAEFTHGSKAA/> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-3420](https://www.cve.org/CVERecord?id=CVE-2021-3420), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3420](https://nvd.nist.gov/vuln/detail/CVE-2021-3420), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3420 · Whole record: https://cve.day/CVE-2021-3420.json · Rebuilt by cve.day 2026-11-25T22:58:00.170Z
