aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-04-29 10:35:34 +0200
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>2016-05-24 11:35:31 -0300
commit1029487ab3b2ef65ec9364cb15c44ee9c571224f (patch)
treebcdf22236e9d5a9a13688ff53cc0d0700f366e7c /ChangeLog
parentedbab2450a084a275d418fba871a8c7b48001a71 (diff)
downloadglibc-1029487ab3b2ef65ec9364cb15c44ee9c571224f.zip
glibc-1029487ab3b2ef65ec9364cb15c44ee9c571224f.tar.gz
glibc-1029487ab3b2ef65ec9364cb15c44ee9c571224f.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. (cherry picked from commit 4ab2ab03d4351914ee53248dc5aef4a8c88ff8b9)
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9ec6a56..b288fdb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2016-05-24 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-28 Stefan Liebler <stli@linux.vnet.ibm.com>
[BZ #18508]