Skip to content
OpenAdvisories
Unscored CVE-2021-3420 EUVD-2021-26748GHSA-wp32-4vw5-mw9c

A flaw was found in newlib in versions prior to 4.0.0. Improper overflow validation in the memory allocation functions mEMALIGn, pvALLOc, n…

Published Mar 5, 2021 · Updated Aug 3, 2024 · 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.

Affected products

VendorProductAffectedFixed
— newlib newlib versions prior to 4.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 newlib 4.4.0.20231231-2 —
Debian 14 picolibc 1.5-1 —
Debian 13 newlib 4.4.0.20231231-2 —
Debian 13 picolibc 1.5-1 —
Debian 12 newlib 3.3.0-1.3+deb12u1 —
Debian 12 picolibc 1.5-1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS newlib No fix yet —
Ubuntu 22.04 LTS newlib No fix yet —
Ubuntu 20.04 LTS newlib No fix yet —
Ubuntu 18.04 LTS newlib No fix yet —
Ubuntu 16.04 LTS newlib No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed newlib 4.1.0-2.2 openSUSE-SU-2024:11086-1
ReleasePackageFixed inAdvisory
Alpine v3.24 newlib 4.1.0-r0 —
Alpine v3.23 newlib 4.1.0-r0 —
Alpine v3.22 newlib 4.1.0-r0 —
Alpine v3.21 newlib 4.1.0-r0 —
Alpine v3.20 newlib 4.1.0-r0 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 newlib 4.1.0-r0 —
Alpine v3.18 newlib 4.1.0-r0 —
Alpine v3.17 newlib 4.1.0-r0 —
Alpine v3.16 newlib 4.1.0-r0 —
Alpine v3.15 newlib 4.1.0-r0 —
Alpine v3.14 newlib 4.1.0-r0 —

Advisories 2

References