[Bug network/20010] getaddrinfo: Stack overflow in hostent translation (CVE-2016-3706)
cvs-commit at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Wed May 11 09:59:00 GMT 2016
https://sourceware.org/bugzilla/show_bug.cgi?id=20010
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, release/2.23/master has been updated
via 1a8a7c12950a0026a3c406a7cb1608f96aa1460e (commit)
from 24e2b1cede1952d7d4411a3cafd25dd8593dab9f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1a8a7c12950a0026a3c406a7cb1608f96aa1460e
commit 1a8a7c12950a0026a3c406a7cb1608f96aa1460e
Author: Florian Weimer <fweimer@redhat.com>
Date: Fri Apr 29 10:35:34 2016 +0200
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.
(cherry picked from commit 4ab2ab03d4351914ee53248dc5aef4a8c88ff8b9)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 +++
sysdeps/posix/getaddrinfo.c | 130 +++++++++++++++++++++++--------------------
2 files changed, 79 insertions(+), 61 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list