CVE Vulnerabilities

CVE-2019-6978

Double Free

Published: Jan 28, 2019 | Modified: Nov 07, 2023
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
5.3 LOW
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Ubuntu
LOW

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.

Weakness

The product calls free() twice on the same memory address, potentially leading to modification of unexpected memory locations.

Affected Software

Name Vendor Start Version End Version
Libgd Libgd 2.2.5 (including) 2.2.5 (including)
Red Hat Enterprise Linux 7 RedHat libwmf-0:0.2.8.4-44.el7 *
Red Hat Enterprise Linux 8 RedHat libwmf-0:0.2.9-8.el8_0 *
Red Hat Enterprise Linux 8 RedHat gd-0:2.2.5-7.el8 *
Libgd2 Ubuntu bionic *
Libgd2 Ubuntu cosmic *
Libgd2 Ubuntu precise/esm *
Libgd2 Ubuntu trusty *
Libgd2 Ubuntu xenial *

Potential Mitigations

References