UBUNTU-CVE-2021-40145

Source
https://ubuntu.com/security/CVE-2021-40145
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-40145.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-40145
Related
Published
2021-08-26T01:15:00Z
Modified
2021-08-26T01:15:00Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

* DISPUTED * gdImageGd2Ptr in gd_gd2.c in the GD Graphics Library (aka LibGD) through 2.3.2 has a double free. NOTE: the vendor's position is "The GD2 image format is a proprietary image format of libgd. It has to be regarded as being obsolete, and should only be used for development and testing purposes."

References

Affected packages

Ubuntu:Pro:14.04:LTS / libgd2

Package

Name
libgd2
Purl
pkg:deb/ubuntu/libgd2?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.0-3ubuntu0.11+esm2

Affected versions

2.*

2.1.0-2
2.1.0-3
2.1.0-3ubuntu0.1
2.1.0-3ubuntu0.2
2.1.0-3ubuntu0.3
2.1.0-3ubuntu0.5
2.1.0-3ubuntu0.6
2.1.0-3ubuntu0.7
2.1.0-3ubuntu0.8
2.1.0-3ubuntu0.10
2.1.0-3ubuntu0.11
2.1.0-3ubuntu0.11+esm1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.1.0-3ubuntu0.11+esm2",
            "binary_name": "libgd-dbg"
        },
        {
            "binary_version": "2.1.0-3ubuntu0.11+esm2",
            "binary_name": "libgd-dev"
        },
        {
            "binary_version": "2.1.0-3ubuntu0.11+esm2",
            "binary_name": "libgd-tools"
        },
        {
            "binary_version": "2.1.0-3ubuntu0.11+esm2",
            "binary_name": "libgd-tools-dbgsym"
        },
        {
            "binary_version": "2.1.0-3ubuntu0.11+esm2",
            "binary_name": "libgd2-noxpm-dev"
        },
        {
            "binary_version": "2.1.0-3ubuntu0.11+esm2",
            "binary_name": "libgd2-xpm-dev"
        },
        {
            "binary_version": "2.1.0-3ubuntu0.11+esm2",
            "binary_name": "libgd3"
        },
        {
            "binary_version": "2.1.0-3ubuntu0.11+esm2",
            "binary_name": "libgd3-dbgsym"
        }
    ]
}

Ubuntu:Pro:16.04:LTS / libgd2

Package

Name
libgd2
Purl
pkg:deb/ubuntu/libgd2?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.1-4ubuntu0.16.04.12+esm1

Affected versions

2.*

2.1.1-4build1
2.1.1-4build2
2.1.1-4ubuntu0.16.04.1
2.1.1-4ubuntu0.16.04.2
2.1.1-4ubuntu0.16.04.3
2.1.1-4ubuntu0.16.04.5
2.1.1-4ubuntu0.16.04.6
2.1.1-4ubuntu0.16.04.7
2.1.1-4ubuntu0.16.04.8
2.1.1-4ubuntu0.16.04.10
2.1.1-4ubuntu0.16.04.11
2.1.1-4ubuntu0.16.04.12

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.1.1-4ubuntu0.16.04.12+esm1",
            "binary_name": "libgd-dbg"
        },
        {
            "binary_version": "2.1.1-4ubuntu0.16.04.12+esm1",
            "binary_name": "libgd-dev"
        },
        {
            "binary_version": "2.1.1-4ubuntu0.16.04.12+esm1",
            "binary_name": "libgd-dev-dbgsym"
        },
        {
            "binary_version": "2.1.1-4ubuntu0.16.04.12+esm1",
            "binary_name": "libgd-tools"
        },
        {
            "binary_version": "2.1.1-4ubuntu0.16.04.12+esm1",
            "binary_name": "libgd-tools-dbgsym"
        },
        {
            "binary_version": "2.1.1-4ubuntu0.16.04.12+esm1",
            "binary_name": "libgd3"
        },
        {
            "binary_version": "2.1.1-4ubuntu0.16.04.12+esm1",
            "binary_name": "libgd3-dbgsym"
        }
    ]
}

Ubuntu:18.04:LTS / libgd2

Package

Name
libgd2
Purl
pkg:deb/ubuntu/libgd2?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.5-4ubuntu0.5

Affected versions

2.*

2.2.5-3
2.2.5-4
2.2.5-4ubuntu0.2
2.2.5-4ubuntu0.3
2.2.5-4ubuntu0.4

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.2.5-4ubuntu0.5",
            "binary_name": "libgd-dev"
        },
        {
            "binary_version": "2.2.5-4ubuntu0.5",
            "binary_name": "libgd-tools"
        },
        {
            "binary_version": "2.2.5-4ubuntu0.5",
            "binary_name": "libgd-tools-dbgsym"
        },
        {
            "binary_version": "2.2.5-4ubuntu0.5",
            "binary_name": "libgd3"
        },
        {
            "binary_version": "2.2.5-4ubuntu0.5",
            "binary_name": "libgd3-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / libgd2

Package

Name
libgd2
Purl
pkg:deb/ubuntu/libgd2?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.2.5-5.2ubuntu2.1

Affected versions

2.*

2.2.5-5.2
2.2.5-5.2ubuntu2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.2.5-5.2ubuntu2.1",
            "binary_name": "libgd-dev"
        },
        {
            "binary_version": "2.2.5-5.2ubuntu2.1",
            "binary_name": "libgd-tools"
        },
        {
            "binary_version": "2.2.5-5.2ubuntu2.1",
            "binary_name": "libgd-tools-dbgsym"
        },
        {
            "binary_version": "2.2.5-5.2ubuntu2.1",
            "binary_name": "libgd3"
        },
        {
            "binary_version": "2.2.5-5.2ubuntu2.1",
            "binary_name": "libgd3-dbgsym"
        }
    ]
}

Ubuntu:22.04:LTS / libgd2

Package

Name
libgd2
Purl
pkg:deb/ubuntu/libgd2?arch=src?distro=jammy

Affected ranges

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

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.3.0-2ubuntu1",
            "binary_name": "libgd-dev"
        },
        {
            "binary_version": "2.3.0-2ubuntu1",
            "binary_name": "libgd-tools"
        },
        {
            "binary_version": "2.3.0-2ubuntu1",
            "binary_name": "libgd-tools-dbgsym"
        },
        {
            "binary_version": "2.3.0-2ubuntu1",
            "binary_name": "libgd3"
        },
        {
            "binary_version": "2.3.0-2ubuntu1",
            "binary_name": "libgd3-dbgsym"
        }
    ]
}