CVE-2019-6978
gd: Double free in the gdImage*Ptr in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by AlmaLinux (medium), Oracle (medium), Rocky Linux (medium), Red Hat (low), Amazon (low), Ubuntu (low).
Description
The GD Graphics Library (aka LibGD) 2.2.5 has a double free in the gdImage*Ptr() functions in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c. NOTE: PHP is unaffected.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 2.0 | libgd | 2.2.5-3.ph2 |
| Photon OS 3.0 | libgd | 2.2.5-3.ph3 |
| alma 8 | gd, gd-devel, libwmf and 2 more | 2.2.5-7.el8 and 1 more |
| alpine 3.10 | gd | 2.2.5-r2 |
| alpine 3.11 | gd | 2.2.5-r2 |
| alpine 3.12 | gd | 2.2.5-r2 |
| alpine 3.13 | gd | 2.2.5-r2 |
| alpine 3.14 | gd | 2.2.5-r2 |
| alpine 3.15 | gd | 2.2.5-r2 |
| alpine 3.16 | gd | 2.2.5-r2 |
| alpine 3.17 | gd | 2.2.5-r2 |
| alpine 3.18 | gd | 2.2.5-r2 |
Show all 69 entries from 44 sources
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 2.0 | libgd | 2.2.5-3.ph2 |
| Photon OS 3.0 | libgd | 2.2.5-3.ph3 |
| alma 8 | gd | 2.2.5-7.el8 |
| alma 8 | gd-devel | 2.2.5-7.el8 |
| alma 8 | libwmf | 0.2.9-8.el8_0 |
| alma 8 | libwmf-devel | 0.2.9-8.el8_0 |
| alma 8 | libwmf-lite | 0.2.9-8.el8_0 |
| alpine 3.10 | gd | 2.2.5-r2 |
| alpine 3.11 | gd | 2.2.5-r2 |
| alpine 3.12 | gd | 2.2.5-r2 |
| alpine 3.13 | gd | 2.2.5-r2 |
| alpine 3.14 | gd | 2.2.5-r2 |
| alpine 3.15 | gd | 2.2.5-r2 |
| alpine 3.16 | gd | 2.2.5-r2 |
| alpine 3.17 | gd | 2.2.5-r2 |
| alpine 3.18 | gd | 2.2.5-r2 |
| alpine 3.19 | gd | 2.2.5-r2 |
| alpine 3.20 | gd | 2.2.5-r2 |
| alpine 3.21 | gd | 2.2.5-r2 |
| alpine 3.22 | gd | 2.2.5-r2 |
| alpine 3.23 | gd | 2.2.5-r2 |
| alpine 3.24 | gd | 2.2.5-r2 |
| alpine 3.6 | gd | 2.2.5-r2 |
| alpine 3.7 | gd | 2.2.5-r2 |
| alpine 3.8 | gd | 2.2.5-r2 |
| alpine 3.9 | gd | 2.2.5-r2 |
| alpine edge | gd | 2.2.5-r2 |
| amazon linux 1 | libwmf | 0.2.8.4-41.13.amzn1 |
| amazon linux 1 | libwmf-debuginfo | 0.2.8.4-41.13.amzn1 |
| amazon linux 1 | libwmf-devel | 0.2.8.4-41.13.amzn1 |
| amazon linux 1 | libwmf-lite | 0.2.8.4-41.13.amzn1 |
| amazon linux 2 | libwmf | 0.2.8.4-41.amzn2.0.3 |
| amazon linux 2 | libwmf-debuginfo | 0.2.8.4-41.amzn2.0.3 |
| amazon linux 2 | libwmf-devel | 0.2.8.4-41.amzn2.0.3 |
| amazon linux 2 | libwmf-lite | 0.2.8.4-41.amzn2.0.3 |
| debian 11 | libgd2 | 2.2.5-5.1 |
| debian 12 | libgd2 | 2.2.5-5.1 |
| debian 13 | libgd2 | 2.2.5-5.1 |
| debian 14 | libgd2 | 2.2.5-5.1 |
| debian 8 | libgd2 | 2.1.0-5+deb8u12 |
| debian 9 | libgd2 | 2.2.4-2+deb9u4 |
| echo | libgd2 | 2.2.5-5.1 |
| Oracle Linux 7 | libwmf | 0.2.8.4-44.el7 |
| Oracle Linux 7 | libwmf-devel | 0.2.8.4-44.el7 |
| Oracle Linux 7 | libwmf-lite | 0.2.8.4-44.el7 |
| Oracle Linux 8 | gd | 2.2.5-7.el8 |
| Oracle Linux 8 | gd-devel | 2.2.5-7.el8 |
| Oracle Linux 8 | libwmf | 0.2.9-8.el8_0 |
| Oracle Linux 8 | libwmf-devel | 0.2.9-8.el8_0 |
| Oracle Linux 8 | libwmf-lite | 0.2.9-8.el8_0 |
| Red Hat | gd | no fix listed |
| Red Hat | gd-devel | no fix listed |
| Red Hat | gd-progs | no fix listed |
| Red Hat | libwmf | no fix listed |
| Red Hat | libwmf-devel | no fix listed |
| Red Hat | libwmf-lite | no fix listed |
| rocky 8 | gd | 2.2.5-7.el8 |
| rocky 8 | gd-devel | 2.2.5-7.el8 |
| rocky 8 | libwmf | 0.2.9-8.el8_0 |
| rocky 8 | libwmf-lite | 0.2.9-8.el8_0 |
| seal Red Hat 7 | gd | 2.0.35-27.el7_9+sp999 |
| seal Red Hat 7 | seal-gd | 2.0.35-27.el7_9+sp999 |
| ubuntu 14.04 | libgd2 | 2.1.0-3ubuntu0.11 |
| ubuntu 14.04-ESM | libgd2 | 2.1.0-3ubuntu0.11 |
| ubuntu 16.04 | libgd2 | 2.1.1-4ubuntu0.16.04.11 |
| ubuntu 16.04-ESM | libgd2 | 2.1.1-4ubuntu0.16.04.11 |
| ubuntu 18.04 | libgd2 | 2.2.5-4ubuntu0.3 |
| ubuntu 18.04-ESM | libgd2 | 2.2.5-4ubuntu0.3 |
| ubuntu 18.10 | libgd2 | 2.2.5-4ubuntu1.1 |
References
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00025.html
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00031.html
- https://access.redhat.com/errata/RHSA-2019:2722
- https://access.redhat.com/security/cve/CVE-2019-6978
- https://bugzilla.redhat.com/show_bug.cgi?id=1600727
- https://bugzilla.redhat.com/show_bug.cgi?id=1671390
- https://bugzilla.redhat.com/show_bug.cgi?id=1672207
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-14553
All 28 references
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6977
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6978
- https://errata.almalinux.org/8/ALSA-2020-4659.html
- https://errata.rockylinux.org/RLSA-2020:4659
- https://github.com/libgd/libgd/commit/553702980ae89c83f2d6e254d62cf82e204956d0
- https://github.com/libgd/libgd/issues/492
- https://github.com/php/php-src/commit/089f7c0bc28d399b0420aa6ef058e4c1c120b2ae
- https://linux.oracle.com/cve/CVE-2019-6978.html
- https://linux.oracle.com/errata/ELSA-2020-4659.html
- https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/
- https://nvd.nist.gov/vuln/detail/CVE-2019-6978
- https://security.gentoo.org/glsa/201903-18
- https://ubuntu.com/security/notices/USN-3900-1
- https://usn.ubuntu.com/3900-1/
- https://www.cve.org/CVERecord?id=CVE-2019-6978
- https://www.debian.org/security/2019/dsa-4384