diff options
author | Florian Weimer <fweimer@redhat.com> | 2016-04-29 10:35:34 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2016-04-29 10:35:34 +0200 |
commit | 4ab2ab03d4351914ee53248dc5aef4a8c88ff8b9 (patch) | |
tree | b67c8017a8c64a89dcdf4649965246fc2920f03c /ChangeLog | |
parent | 137fe72eca6923a00381a3ca9f0e7672c1f85e3f (diff) | |
download | glibc-4ab2ab03d4351914ee53248dc5aef4a8c88ff8b9.zip glibc-4ab2ab03d4351914ee53248dc5aef4a8c88ff8b9.tar.gz glibc-4ab2ab03d4351914ee53248dc5aef4a8c88ff8b9.tar.bz2 |
CVE-2016-3706: getaddrinfo: stack overflow in hostent conversion [BZ #20010]
When converting a struct hostent response to struct gaih_addrtuple, the
gethosts macro (which is called from gaih_inet) used alloca, without
malloc fallback for large responses. This commit changes this code to
use calloc unconditionally.
This commit also consolidated a second hostent-to-gaih_addrtuple
conversion loop (in gaih_inet) to use the new conversion function.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,5 +1,15 @@ 2016-04-29 Florian Weimer <fweimer@redhat.com> + [BZ #20010] + CVE-2016-3706 + * sysdeps/posix/getaddrinfo.c + (convert_hostent_to_gaih_addrtuple): New function. + (gethosts): Call convert_hostent_to_gaih_addrtuple. + (gaih_inet): Use convert_hostent_to_gaih_addrtuple to convert + AF_INET data. + +2016-04-29 Florian Weimer <fweimer@redhat.com> + glob: Simplify and document the interface for the GLOB_ALTDIRFUNC callback function gl_readdir. * posix/glob.c (NAMELEN, CONVERT_D_NAMLEN): Remove. |