Skip to content
OpenAdvisories
Medium · 6.5 CVE-2021-40812 EUVD-2021-27976GHSA-53w9-wg73-ghrw

The GD Graphics Library (aka LibGD) through 2.3.2 has an out-of-bounds read because of the lack of certain gdGetBuf and gdPutBuf return val…

Published Sep 8, 2021 · Updated Oct 29, 2024 · Assigned by mitre

Description

The GD Graphics Library (aka LibGD) through 2.3.2 has an out-of-bounds read because of the lack of certain gdGetBuf and gdPutBuf return value checks.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libgd2 2.3.3-1 —
Debian 13 libgd2 2.3.3-1 —
Debian 12 libgd2 2.3.3-1 —
Debian 11 libgd2 2.3.0-2+deb11u1 DLA-4411-1
Debian 10 libgd2 2.2.5-5.2+deb10u1 DLA-3781-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS libgd2 2.3.0-2ubuntu2.3 USN-7112-1
Ubuntu 20.04 LTS libgd2 2.2.5-5.2ubuntu2.4 USN-7112-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS libgd2 2.2.5-4ubuntu0.5+esm3 USN-7112-1
Ubuntu Pro 16.04 LTS libgd2 2.1.1-4ubuntu0.16.04.12+esm4 USN-7112-1
Ubuntu Pro 14.04 LTS libgd2 No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP3 gd 2.2.5-11.3.1 SUSE-SU-2021:3236-1
SLES 15 SP2 gd 2.2.5-11.3.1 SUSE-SU-2021:3236-1
SLES 12 SP5 gd 2.1.0-24.20.1 SUSE-SU-2021:3214-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 gd 2.1.0-24.20.1 SUSE-SU-2021:3214-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.3 gd 2.2.5-11.3.1 openSUSE-SU-2021:3236-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) gd 2.3.3-1 —

Advisories 8

References