Race condition in the ldsemcmpxchg function in drivers/tty/ttyldsem.c in the Linux kernel before 3.13-rc4-next-20131218 allows local users to cause a denial of service (ldsemdownread and ldsemdownwrite deadlock) by establishing a new tty thread during shutdown of a previous tty thread.