Vulnerability Name:

CVE-2021-3420 (CCN-197817)

Assigned:2021-03-05
Published:2021-03-05
Updated:2021-03-24
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.
CVSS v3 Severity:9.8 Critical (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
8.5 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
9.8 Critical (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
8.5 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:7.5 High (CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
10.0 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-120
CWE-190
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2021-3420

Source: CCN
Type: Red Hat Bugzilla - Bug 1934088
(CVE-2021-3420) - CVE-2021-3420 arm-none-eabi-newlib: improper validation in memory allocation functions could lead to heap-based buffer overflow

Source: MISC
Type: Broken Link, Issue Tracking, Patch, Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1934088

Source: XF
Type: UNKNOWN
newlib-cve20213420-bo(197817)

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2021-332fb9c796

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2021-0fa2f42d3c

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2021-267c08cc40

Source: CCN
Type: newlib GIT Repository
malloc/nano-malloc: correctly check for out-of-bounds allocation reqs

Vulnerable Configuration:Configuration 1:
  • cpe:/a:newlib_project:newlib:*:*:*:*:*:*:*:* (Version < 4.0.0)

  • Configuration 2:
  • cpe:/o:fedoraproject:fedora:32:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:33:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:34:*:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:newlib_project:newlib:3.0.0:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:113027
    P
    newlib-4.1.0-2.2 on GA media (Moderate)
    2022-01-17
    oval:org.opensuse.security:def:106470
    P
    Security update for postgresql10 (Important)
    2021-12-14
    BACK
    newlib_project newlib *
    fedoraproject fedora 32
    fedoraproject fedora 33
    fedoraproject fedora 34
    newlib_project newlib 3.0.0