gdImageClone in gd.c in libgd 2.1.0-rc2 through 2.2.5 has a NULL pointer dereference allowing attackers to crash an application via a specific function call sequence. Only affects PHP when linked with an external libgd (not bundled).
https://usn.ubuntu.com/4316-2/
https://usn.ubuntu.com/4316-1/
https://lists.debian.org/debian-lts-announce/2024/04/msg00003.html
https://lists.debian.org/debian-lts-announce/2020/02/msg00014.html
https://github.com/libgd/libgd/pull/580
https://github.com/libgd/libgd/commit/a93eac0e843148dc2d631c3ba80af17e9c8c860f
https://bugzilla.redhat.com/show_bug.cgi?id=1599032
http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00020.html