ObDereferenceObject vulnerability PoC. It is a PoC I've done for my article "Decrement Windows Kernel for fun and profit".
To build you need Visual Studio 2017 with WindowsKernelModeDriver10.0 toolset. Change Target Platform Version (10.0.16299.0) if you need. Feel free to play with it. Tested on Windows 10 RS3 (16299) x64 only.
Code is released under the MIT license.