p PatchFirst

CVE-2021-3420

CVE-2021-3420

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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 9.8 · Critical · EPSS 2.1% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • newlib

    Versions
    • newlib versions prior to 4.0.0: Affected

    No fix published

  • newlib Debian:12

    Versions
    • 3.3.0-1.3
    Affected ranges
    • ECOSYSTEM: < 3.3.0-1.3+deb12u1

    Update to 3.3.0-1.3+deb12u1

  • newlib Debian:13

    Affected ranges
    • ECOSYSTEM: < 4.4.0.20231231-2

    Update to 4.4.0.20231231-2

  • newlib Debian:14

    Affected ranges
    • ECOSYSTEM: < 4.4.0.20231231-2

    Update to 4.4.0.20231231-2

  • picolibc Debian:12

    Affected ranges
    • ECOSYSTEM: < 1.5-1

    Update to 1.5-1

  • picolibc Debian:13

    Affected ranges
    • ECOSYSTEM: < 1.5-1

    Update to 1.5-1

  • picolibc Debian:14

    Affected ranges
    • ECOSYSTEM: < 1.5-1

    Update to 1.5-1

  • newlib Ubuntu:16.04:LTS

    Versions
    • 2.1.0+git20141201.db59ff3-2
    • 2.2.0+git20150830.5a3d536-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • newlib Ubuntu:18.04:LTS

    Versions
    • 2.4.0.20160527-2
    • 2.4.0.20160527-3
    • 2.4.0.20160527-3ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • newlib Ubuntu:20.04:LTS

    Versions
    • 3.1.0.20181231-1
    • 3.3.0-0ubuntu1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • newlib Ubuntu:22.04:LTS

    Versions
    • 3.3.0-1
    • 3.3.0-1.2
    • 3.3.0-1.3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • newlib Ubuntu:24.04:LTS

    Versions
    • 3.3.0-1.3
    • 4.4.0.20231231-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →