CVE-2021-40145
publishedPackage status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2044 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | gd | Fixed | 2.3.0-r1 | Package fix record |
| Debian | bullseye | libgd2 | Advisory build | 2.3.0-2+deb11u1 | DLA-4411-1 |
| Ubuntu | bionic | libgd-tools | Advisory build | 2.2.5-4ubuntu0.5 | USN-5068-1 |
| Amazon Linux | AL2 | gdaarch64 | Listed in advisory | Not stated | ALAS2-2023-2044 |
| Alpine Linux | v3.11 | gd | Fixed | 2.2.5-r4 | Package fix record |
| Alpine Linux | v3.12 | gd | Fixed | 2.3.0-r1 | Package fix record |
Show 26 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.13 | gd | Fixed | 2.3.0-r1 | Package fix record |
| Alpine Linux | v3.14 | gd | Fixed | 2.3.0-r1 | Package fix record |
| Alpine Linux | v3.15 | gd | Fixed | 2.3.0-r1 | Package fix record |
| Alpine Linux | v3.16 | gd | Fixed | 2.3.0-r1 | Package fix record |
| Alpine Linux | v3.17 | gd | Fixed | 2.3.0-r1 | Package fix record |
| Alpine Linux | v3.18 | gd | Fixed | 2.3.0-r1 | Package fix record |
| Alpine Linux | v3.19 | gd | Fixed | 2.3.0-r1 | Package fix record |
| Alpine Linux | v3.20 | gd | Fixed | 2.3.0-r1 | Package fix record |
| Alpine Linux | v3.21 | gd | Fixed | 2.3.0-r1 | Package fix record |
| Alpine Linux | v3.22 | gd | Fixed | 2.3.0-r1 | Package fix record |
| Alpine Linux | v3.23 | gd | Fixed | 2.3.0-r1 | Package fix record |
| Alpine Linux | v3.24 | gd | Fixed | 2.3.0-r1 | Package fix record |
| Ubuntu | bionic | libgd2 | Advisory build | 2.2.5-4ubuntu0.5 | USN-5068-1 |
| Ubuntu | bionic | libgd3 | Advisory build | 2.2.5-4ubuntu0.5 | USN-5068-1 |
| Ubuntu | esm | libgd-tools | Advisory build | 2.1.0-3ubuntu0.11+esm2 | USN-5068-1 |
| Ubuntu | esm | libgd2 | Advisory build | 2.1.0-3ubuntu0.11+esm2 | USN-5068-1 |
| Ubuntu | esm | libgd3 | Advisory build | 2.1.0-3ubuntu0.11+esm2 | USN-5068-1 |
| Ubuntu | focal | libgd-tools | Advisory build | 2.2.5-5.2ubuntu2.1 | USN-5068-1 |
| Ubuntu | focal | libgd2 | Advisory build | 2.2.5-5.2ubuntu2.1 | USN-5068-1 |
| Ubuntu | focal | libgd3 | Advisory build | 2.2.5-5.2ubuntu2.1 | USN-5068-1 |
| Ubuntu | xenial | libgd-tools | Advisory build | 2.1.1-4ubuntu0.16.04.12+esm1 | USN-5068-1 |
| Ubuntu | xenial | libgd2 | Advisory build | 2.1.1-4ubuntu0.16.04.12+esm1 | USN-5068-1 |
| Ubuntu | xenial | libgd3 | Advisory build | 2.1.1-4ubuntu0.16.04.12+esm1 | USN-5068-1 |
| Amazon Linux | AL2 | gdi686 | Listed in advisory | Not stated | ALAS2-2023-2044 |
| Amazon Linux | AL2 | gdsrc | Listed in advisory | Not stated | ALAS2-2023-2044 |
| Amazon Linux | AL2 | gdx86_64 | Listed in advisory | Not stated | ALAS2-2023-2044 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
3Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1d705272381134a87a815e1a11e29a54223f3867449bddcc1a3e2d35872f2733
- Ingested
- 23 Sep 2026, 07:55:59 UTC
- Source record
- Official CVE record