The fpathconf syscall function in bsd/kern/kern_descrip.c in the Darwin kernel (XNU) 8.8.1 in Apple Mac OS X allows local users to cause a denial of service (kernel panic) and possibly execute arbitrary code via a file descriptor with an unrecognized file type.
https://exchange.xforce.ibmcloud.com/vulnerabilities/30152
http://www.vupen.com/english/advisories/2007/0930
http://www.vupen.com/english/advisories/2006/4448
http://www.us-cert.gov/cas/techalerts/TA07-072A.html
http://www.securitytracker.com/id?1017751
http://secunia.com/advisories/24479
http://secunia.com/advisories/22808
http://lists.apple.com/archives/security-announce/2007/Mar/msg00002.html