CVE-2021-40145

libgd3: gdImageGd2Ptr in gd_gd2.c in the GD Graphics Library (aka LibGD) through 2.3.2 has a double free

CVE-2021-40145 is fixed in 2 products on 1 platform, first by libgd-tools 2.2.5-4ubuntu0.5, released August 25, 2021. It is not reported as exploited. Patch Radar priority: Routine.

Routine
CVSS
n/a
Medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0213
82nd percentile

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.

Where it's fixed

ProductFixed inFixReleased
Linux
libgd-tools · Ubuntu 18.04.6 LTS (bionic) 2.2.5-4ubuntu0.5 libgd-tools 2.2.5-4ubuntu0.5 Aug 25, 2021
libgd-tools · Ubuntu 20.04 LTS (focal) 2.2.5-5.2ubuntu2.1 libgd-tools 2.2.5-5.2ubuntu2.1 Aug 25, 2021
libgd-tools · Ubuntu 22.04.1 LTS (jammy) 2.3.0-2ubuntu1 libgd-tools 2.3.0-2ubuntu1 Aug 25, 2021
libgd3 · Ubuntu 18.04.6 LTS (bionic) 2.2.5-4ubuntu0.5 libgd3 2.2.5-4ubuntu0.5 Aug 25, 2021
libgd3 · Ubuntu 20.04 LTS (focal) 2.2.5-5.2ubuntu2.1 libgd3 2.2.5-5.2ubuntu2.1 Aug 25, 2021
libgd3 · Ubuntu 22.04.1 LTS (jammy) 2.3.0-2ubuntu1 libgd3 2.3.0-2ubuntu1 Aug 25, 2021

Patch Radar data is free to use with attribution. Terms and how to credit it.

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.