Linux kernel version from 2.6.17 to 126.96.36.199 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.
Linux/Unix Howtos & Tutorials