该脚本用于测试 glibc 漏洞 CVE-2015-7547。它专为基于 rpm 的系统编写,例如 Red Hat Enterprise Linux / RHEL / CentOS (5/6/7)。其他发行版的检测支持可能会在后续添加。
bin/test-glibc.sh 检查您的系统是否存在漏洞bin/test-glibc.sh 进行验证如果您在应用更新后无法重启整个系统,请执行以下命令,列出系统上仍在使用旧版(内存中)glibc 的所有正在运行的进程(不仅限于服务)。
lsof +c0 -d DEL | awk 'NR==1 || /libc-/ {print $2,$1,$4,$NF}' | column -t
Google 安全博客:
https://googleonlinesecurity.blogspot.be/2016/02/cve-2015-7547-glibc-getaddrinfo-stack.html
Glibc Bug 报告:
https://sourceware.org/bugzilla/show_bug.cgi?id=18665
Red Hat / CentOS:
https://access.redhat.com/articles/2161461
https://access.redhat.com/security/cve/CVE-2015-7547
Debian Squeeze、Wheezy、Jessy & Stretch:
https://security-tracker.debian.org/tracker/CVE-2015-7547
Ubuntu 12.04 和 14.04:
http://people.canonical.com/~ubuntu-security/cve/2015/CVE-2015-7547.html
在 Ubuntu 14.04 LTS 上,请确保您获得以下输出
ldd --version | head -1
ldd (Ubuntu EGLIBC 2.19-0ubuntu6.7) 2.19