The php_next_marker function in image.c for PHP 4.2.2, 4.3.9, 4.3.10 and 5.0.3, as reachable by the getimagesize PHP function, allows remote attackers to cause a denial of service (infinite loop) via a JPEG image with an invalid marker value, which causes a negative length value to be passed to php_stream_seek.
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11703
http://www.vupen.com/english/advisories/2005/0305
http://www.redhat.com/support/errata/RHSA-2005-406.html
http://www.redhat.com/support/errata/RHSA-2005-405.html
http://www.mandriva.com/security/advisories?name=MDKSA-2005:072
http://www.gentoo.org/security/en/glsa/glsa-200504-15.xml
http://www.debian.org/security/2005/dsa-729
http://www.debian.org/security/2005/dsa-708
http://securitytracker.com/id?1013619
http://secunia.com/advisories/14792
http://lists.apple.com/archives/security-announce/2005/Jun/msg00000.html