The ptrace functionality (ptrace.c) in Linux kernel 2.6 before 2.6.14.2, using CLONE_THREAD, does not use the thread group ID to check whether it is attaching to itself, which allows local users to cause a denial of service (crash).
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=174075
http://www.securityfocus.com/bid/15642
http://www.securityfocus.com/archive/1/419522/100/0/threaded
http://www.securityfocus.com/advisories/9806
http://www.mandriva.com/security/advisories?name=MDKSA-2006:072
http://www.mandriva.com/security/advisories?name=MDKSA-2006:018
http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.14.2
http://www.debian.org/security/2006/dsa-1018
http://www.debian.org/security/2006/dsa-1017
http://secunia.com/advisories/19607
http://secunia.com/advisories/19374
http://secunia.com/advisories/19369
http://secunia.com/advisories/18203
http://secunia.com/advisories/17918
http://secunia.com/advisories/17917