CVE-2021-3420: Integer Overflow
A flaw was found in newlib in versions prior to 4.0.0. Improper overflow validation in the memory allocation functions mEMALIGn, pvALLOc, nanomemalign, nanovalloc, nanopvalloc could case an integer overflow, leading to an allocation of a small buffer and then to a heap-based buffer overflow.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/newlibto a version that resolves this vulnerability.Fixed in 4.0.0 - Upgrade
Upgrade
newlibto a version that resolves this vulnerability.Fixed in 4.0.0
Event History
Frequently Asked Questions
What is the severity of CVE-2021-3420?
The severity of CVE-2021-3420 is rated as high due to the potential for a heap-based buffer overflow, which can lead to system compromise.
How do I fix CVE-2021-3420?
To fix CVE-2021-3420, you should upgrade Newlib to version 4.0.0 or later.
Which versions of Newlib are affected by CVE-2021-3420?
Newlib versions prior to 4.0.0 are affected by CVE-2021-3420.
What types of systems are vulnerable to CVE-2021-3420?
CVE-2021-3420 affects systems running Newlib, including various embedded operating systems and frameworks.
Is CVE-2021-3420 related to memory management vulnerabilities?
Yes, CVE-2021-3420 involves improper overflow validation in memory allocation functions, leading to potential buffer overflows.