The kernel in Apple Mac OS X 10.4 through 10.4.10 does not reset the current Mach Thread Port or Thread Exception Port when executing a setuid program, which allows local users to execute arbitrary code by creating the port before launching the setuid program, then writing to the address space of the setuid process.
https://exchange.xforce.ibmcloud.com/vulnerabilities/38466
https://euvd.enisa.europa.eu/vulnerability/EUVD-2007-3733
http://www.vupen.com/english/advisories/2007/3868
http://www.us-cert.gov/cas/techalerts/TA07-319A.html
http://www.securityfocus.com/bid/26444
http://secunia.com/advisories/27643
http://lists.apple.com/archives/security-announce/2007/Nov/msg00002.html
http://labs.idefense.com/intelligence/vulnerabilities/display.php?id=630