In case anyone has tons of Docker images and looks for a easy way to list those which include a vulnerable glibc version, here is a handy one-liner: https://5pi.de/2015/01/27/find-ghosts-in-your-docker-images/
CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
131–140 of 254 posts
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#132Earlier quoted context omitted.
gethostbyname() and friends fill in struct hostent: struct hostent { char *h_name; /* official name of host */ char **h_aliases; /* alias list */ int h_addrtype; /* host address type */ int h_length; /* length of address */ char **h_addr_list; /* list of addresses */ } The pointers in the structure point into the buffer. There could be any number of host aliases or IP addresses.
That's true and a good point, but not (it seems) applicable to this particular function, which validates whether or not the name is one of two fixed-sized formats, right? (edit) You may be totally right here, by the way.
In that specific case there are no aliases and exactly one IP address, but the buffer could still be too small (e.g. if caller-supplied with gethostbyname_r()).
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#133Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#134Earlier quoted context omitted.
It is nice if they can count. However instead of sending them back to kindergarten, it might make sense to find a compiler/language/framework that would make inability to count not result in easy remote exploits.
So remove the ability to use pointers to directly access memory. Then you're only left with all of the other security vulnerabilities found in every such language.
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#135Details on this one appear to be quite sparse - under what use cases would a remote user be able to craft invalid IP addresses?
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#136Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#137RedHat has a fix for 6 and 7 now: https://rhn.redhat.com/errata/RHSA-2015-0092.html
Does anyone have any insight into when we'll see CentOS packages start hitting the mirrors?
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#138Here is the test program, from http://www.openwall.com/lists/oss-security/2015/01/27/9 https://gist.github.com/koelling/ef9b2b9d0be6d6dbab63 To test your system, simply run this (but obviously only after making sure gistfile1.c is clean ;)) wget https://gist.githubusercontent.com/koelling/ef9b2b9d0be6d6dbab63/raw/de1730049198c64eaf8f8ab015a3c8b23b63fd34/gistfile1.c gcc gistfile1.c -o CVE-2015-0235 ./CVE-2015-0235
Re: CVE-2015-0235 – GHOST: glibc gethostbyname buffer overflow
#139Feedback welcome:
http://product.reverb.com/2015/01/28/patching-cve-2015-0235-...