| Name | CVE-2021-40145 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4411-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| libgd2 (PTS) | bullseye | 2.3.0-2 | vulnerable |
| bullseye (security) | 2.3.0-2+deb11u2 | fixed | |
| bookworm | 2.3.3-9 | fixed | |
| bookworm (security) | 2.3.3-9+deb12u1 | fixed | |
| trixie | 2.3.3-13 | fixed | |
| trixie (security) | 2.3.3-14~deb13u1 | fixed | |
| forky, sid | 2.3.3-14 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| libgd2 | source | bullseye | 2.3.0-2+deb11u1 | DLA-4411-1 | ||
| libgd2 | source | (unstable) | 2.3.3-1 | unimportant |
https://github.com/libgd/libgd/issues/700
https://github.com/libgd/libgd/pull/713
https://github.com/libgd/libgd/commit/c5fd25ce0e48fd5618a972ca9f5e28d6d62006af
Negligible security impact