Linux kernel version from 2.6.17 to 184.108.40.206 all are affected because of vmsplice bug. The exploit code can be used to test if a kernel is vulnerable and it can start a root shell.
=> Debian Bug report logs
=> Fix 1 and Fix 2
Update: See how to apply a patch to kernel source tree.