Double Free in libgd2 - CVE-2019-6978

 

Double Free in libgd2 - CVE-2019-6978

Published: February 6, 2019


Vulnerability identifier: #VU17380
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-6978
CWE-ID: CWE-415
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to double free in the gdImage*Ptr() functions in gd_gif_out.c, gd_jpeg.c, and gd_wbmp.c. A remote attacker can trick the victim into opening a specially crafted input, trigger double free error and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

libgd2
Gentoo Linux
Amazon Linux AMI
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
Debian Linux
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Workstation Extension
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Server
Slackware Linux
Opensuse
SUSE Linux Enterprise High Performance Computing
openSUSE Leap
Fedora
libwmf (Red Hat package)
SUSE Linux Enterprise Module for Packagehub Subpackages
gd (Alpine package)
libgd2 (Ubuntu package)
libgd2 (Debian package)
libwmf
libwmf-0_2-7-debuginfo
libwmf-debugsource
libwmf-devel
libwmf-gnome
libwmf-gnome-debuginfo
libwmf-tools
libwmf-tools-debuginfo
libwmf-0_2-7
libwmf-gnome-32bit-debuginfo
libwmf-gnome-32bit
libwmf-0_2-7-32bit-debuginfo
libwmf-0_2-7-32bit
gd (Red Hat package)
gd
Data Computing Appliance (DCA)
Flex System Chassis Management Module (CMM)

How to mitigate CVE-2019-6978

Install updates from vendor's website.

libwmf (Red Hat package) - update to 0.2.8.4-44.el7
gd (Alpine package) - update to 2.2.5-r2
libgd2 (Ubuntu package) - addressed in versions 2.1.0-3ubuntu0.11, 2.1.1-4ubuntu0.16.04.11, 2.2.5-4ubuntu0.3, 2.2.5-4ubuntu1.1
libgd2 (Debian package) - update to 2.2.4-2+deb9u4
libwmf - addressed in versions 0.2.12-1.fc28, 0.2.12-1.fc29
libwmf-0_2-7-debuginfo - addressed in versions 0.2.12-243.3.1, 0.2.12-150000.4.4.1
libwmf-debugsource - addressed in versions 0.2.12-243.3.1, 0.2.12-150000.4.4.1
libwmf-devel - addressed in versions 0.2.12-243.3.1, 0.2.12-150000.4.4.1
libwmf-gnome - addressed in versions 0.2.12-243.3.1, 0.2.12-150000.4.4.1
libwmf-gnome-debuginfo - addressed in versions 0.2.12-243.3.1, 0.2.12-150000.4.4.1
libwmf-tools - addressed in versions 0.2.12-243.3.1, 0.2.12-150000.4.4.1
libwmf-tools-debuginfo - addressed in versions 0.2.12-243.3.1, 0.2.12-150000.4.4.1
libwmf-0_2-7 - addressed in versions 0.2.12-243.3.1, 0.2.12-150000.4.4.1
libwmf-gnome-32bit-debuginfo - update to 0.2.12-150000.4.4.1
libwmf-gnome-32bit - update to 0.2.12-150000.4.4.1
libwmf-0_2-7-32bit-debuginfo - update to 0.2.12-150000.4.4.1
libwmf-0_2-7-32bit - update to 0.2.12-150000.4.4.1
gd (Red Hat package) - update to 2.2.5-7.el8
gd - addressed in versions 2.2.5-8.fc29, 2.2.5-9.fc30, 2.2.5-10.fc31, 2.3.0-1.fc32
Data Computing Appliance (DCA) - addressed in versions Firmware tool 3H00, 4.2.1.0
Flex System Chassis Management Module (CMM) - update to 2pet18c-2.5.16c

External References

Related Security Bulletins