The exif_process_user_comment function in ext/exif/exif.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a crafted JPEG image.
https://support.apple.com/HT207170
https://security.gentoo.org/glsa/201611-22
http://www.securitytracker.com/id/1036430
http://www.securityfocus.com/bid/92078
http://www.debian.org/security/2016/dsa-3631
http://rhn.redhat.com/errata/RHSA-2016-2750.html
http://php.net/ChangeLog-7.php
http://php.net/ChangeLog-5.php
http://openwall.com/lists/oss-security/2016/07/24/2
http://lists.apple.com/archives/security-announce/2016/Sep/msg00006.html
http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=41131cd41d2fd2e0c2f332a27988df75659c42e4