Integer Overflow or Wraparound Affecting newlib package, versions <3.3.0-1.3+deb12u1


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.33% (71st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN12-NEWLIB-1554541
  • published3 Mar 2021
  • disclosed5 Mar 2021

Introduced: 3 Mar 2021

CVE-2021-3420  (opens in a new tab)
CWE-190  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade Debian:12 newlib to version 3.3.0-1.3+deb12u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream newlib package and not the newlib package as distributed by Debian. See How to fix? for Debian:12 relevant fixed versions and status.

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 Scores

version 3.1