UBUNTU-CVE-2021-3420

Source
https://ubuntu.com/security/CVE-2021-3420
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-3420.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2021-3420
Related
Published
2021-03-05T21:15:00Z
Modified
2025-01-13T10:22:24Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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, nano_pvalloc could case an integer overflow, leading to an allocation of a small buffer and then to a heap-based buffer overflow.

References

Affected packages

Ubuntu:Pro:16.04:LTS / newlib

Package

Name
newlib
Purl
pkg:deb/ubuntu/newlib@2.2.0+git20150830.5a3d536-1?arch=source&distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.1.0+git20141201.db59ff3-2
2.2.0+git20150830.5a3d536-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:18.04:LTS / newlib

Package

Name
newlib
Purl
pkg:deb/ubuntu/newlib@2.4.0.20160527-3ubuntu0.1?arch=source&distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.4.0.20160527-2
2.4.0.20160527-3
2.4.0.20160527-3ubuntu0.1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / gcc-snapshot

Package

Name
gcc-snapshot
Purl
pkg:deb/ubuntu/gcc-snapshot@1:20200418-1ubuntu1?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

Other

1:20191008-1ubuntu1
1:20191201-0ubuntu1
1:20200124-1ubuntu1
1:20200402-0ubuntu1
1:20200418-1ubuntu1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / newlib

Package

Name
newlib
Purl
pkg:deb/ubuntu/newlib@3.3.0-0ubuntu1?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.1.0.20181231-1
3.3.0-0ubuntu1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / gcc-snapshot

Package

Name
gcc-snapshot
Purl
pkg:deb/ubuntu/gcc-snapshot@1:20220117-1ubuntu1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

Other

1:20210827-1ubuntu1
1:20220117-1ubuntu1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / newlib

Package

Name
newlib
Purl
pkg:deb/ubuntu/newlib@3.3.0-1.3?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.3.0-1
3.3.0-1.2
3.3.0-1.3

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / newlib

Package

Name
newlib
Purl
pkg:deb/ubuntu/newlib@4.4.0.20231231-2?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.4.0.20231231-2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "4.4.0.20231231-2",
            "binary_name": "libnewlib-arm-none-eabi"
        },
        {
            "binary_version": "4.4.0.20231231-2",
            "binary_name": "libnewlib-dev"
        },
        {
            "binary_version": "4.4.0.20231231-2",
            "binary_name": "libnewlib-doc"
        },
        {
            "binary_version": "4.4.0.20231231-2",
            "binary_name": "newlib-source"
        }
    ]
}

Ubuntu:24.04:LTS / newlib

Package

Name
newlib
Purl
pkg:deb/ubuntu/newlib@4.4.0.20231231-2?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.3.0-1.3

4.*

4.4.0.20231231-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}