This script is from RedHat themselves:
wget https://access.redhat.com/sites/default/files/rh-cve-2016-5195_1.sh
Then run this command to check if your kernel is vulnberable:
bash rh-cve-2016-5195_1.sh
Send this command out to all of your CentOS servers to patch their kernels:
sudo yum update kernel -y && reboot