For more information about this exploit PoC, see the blog post.
This exploit PoC is designed for macOS High Sierra version 10.13. Apple released a patch on Oct 31, 2017.
To run the POC, first compile and run the program (on a Mac):
cc -o cve cve-2017-13782-poc.c
./cve
Then, from another terminal, run the following command:
sudo dtrace -n 'profile-97/execname == "cve"/{ jstack(); }'