Double free vulnerability in PHP before 4.4.7, and 5.x before 5.2.2, allows context-dependent attackers to execute arbitrary code by interrupting the session_regenerate_id function, as demonstrated by calling a userspace error handler or triggering a memory limit violation.
http://www.vupen.com/english/advisories/2007/2732
http://www.vupen.com/english/advisories/2007/0960
http://www.ubuntu.com/usn/usn-455-1
http://www.securityfocus.com/bid/25159
http://www.securityfocus.com/bid/22968
http://www.novell.com/linux/security/advisories/2007_32_php.html
http://www.debian.org/security/2007/dsa-1283
http://www.debian.org/security/2007/dsa-1282
http://us2.php.net/releases/5_2_2.php
http://us2.php.net/releases/4_4_7.php
http://security.gentoo.org/glsa/glsa-200705-19.xml
http://secunia.com/advisories/26235
http://secunia.com/advisories/25445
http://secunia.com/advisories/25062
http://secunia.com/advisories/25057
http://secunia.com/advisories/25056
http://secunia.com/advisories/25025
http://secunia.com/advisories/24505
http://lists.apple.com/archives/security-announce//2007/Jul/msg00004.html