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, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
libgd2 (PTS) | jessie, jessie (lts) | 2.1.0-5+deb8u15 | vulnerable |
| stretch (security) | 2.2.4-2+deb9u4 | vulnerable |
| stretch (lts), stretch | 2.2.4-2+deb9u6 | vulnerable |
| buster (security), buster, buster (lts) | 2.2.5-5.2+deb10u1 | vulnerable |
| bullseye | 2.3.0-2 | vulnerable |
| bookworm | 2.3.3-9 | fixed |
| sid, trixie | 2.3.3-12 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
libgd2 | source | (unstable) | 2.3.3-1 | unimportant | | |
Notes
https://github.com/libgd/libgd/issues/700
https://github.com/libgd/libgd/pull/713
https://github.com/libgd/libgd/commit/c5fd25ce0e48fd5618a972ca9f5e28d6d62006af
Negligible security impact