
CVE-2015-7547용 테스트 스크립트
이 스크립트는 glibc 취약점 CVE-2015-7547을 테스트하기 위한 셸 스크립트입니다. Red Hat Enterprise Linux / RHEL / CentOS (5/6/7)와 같은 rpm 기반 시스템용으로 작성되었습니다. 다른 배포판에 대한 탐지는 추후 추가될 수 있습니다.
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 Security Blog:
https://googleonlinesecurity.blogspot.be/2016/02/cve-2015-7547-glibc-getaddrinfo-stack.html
Glibc Bug Report:
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