
Shell script to detect glibc CVE-2015-7547 vulnerability on RPM-based systems, with verification steps and guidance for remediation.
This provides a shell script for testing the glibc vulnerability CVE-2015-7547. It's written for rpm based systems such as Red Hat Enterprise Linux / RHEL / CentOS (5/6/7). Detection for other distributions may follow.
bin/test-glibc.sh to check if your system is vulnerablebin/test-glibc.sh again to verifyIn case you are unable to restart the entire system after applying the update, execute the following command to list all running processes (not restricted to services) still using the old [in-memory] version of glibc on your system.
lsof +c0 -d DEL | awk 'NR==1 || /libc-/ {print $2,$1,$4,$NF}' | column -t
Google Security Blog:
Glibc Bug Report:
Red Hat / CentOS:
Debian Squeeze, Wheezy, Jessy & Stretch:
Ubuntu 12.04 & 14.04:
On Ubuntu 14.04 LTS make sure you get the following output
ldd --version | head -1
ldd (Ubuntu EGLIBC 2.19-0ubuntu6.7) 2.19