]> sourceware.org Git - glibc.git/commit
CVE-2015-7547: getaddrinfo() stack-based buffer overflow (Bug 18665).
authorCarlos O'Donell <carlos@systemhalted.org>
Tue, 19 Apr 2016 22:38:09 +0000 (17:38 -0500)
committerPaul E. Murphy <murphyp@linux.vnet.ibm.com>
Tue, 19 Apr 2016 22:42:38 +0000 (17:42 -0500)
commit3ac88d96513b73b69fdc64d9c2f17cc38257a828
tree40120821ce37e1a3bdf677e6d906f60c7e594061
parenteca182fcad77681d5ebe9ab49f91d33ed85d8289
CVE-2015-7547: getaddrinfo() stack-based buffer overflow (Bug 18665).

* A stack-based buffer overflow was found in libresolv when invoked from
  libnss_dns, allowing specially crafted DNS responses to seize control
  of execution flow in the DNS client.  The buffer overflow occurs in
  the functions send_dg (send datagram) and send_vc (send TCP) for the
  NSS module libnss_dns.so.2 when calling getaddrinfo with AF_UNSPEC
  family.  The use of AF_UNSPEC triggers the low-level resolver code to
  send out two parallel queries for A and AAAA.  A mismanagement of the
  buffers used for those queries could result in the response of a query
  writing beyond the alloca allocated buffer created by
  _nss_dns_gethostbyname4_r.  Buffer management is simplified to remove
  the overflow.  Thanks to the Google Security Team and Red Hat for
  reporting the security impact of this issue, and Robert Holiday of
  Ciena for reporting the related bug 18665. (CVE-2015-7547)

See also:
https://sourceware.org/ml/libc-alpha/2016-02/msg00416.html
https://sourceware.org/ml/libc-alpha/2016-02/msg00418.html

(cherry pick from commit e9db92d3acfe1822d56d11abcea5bfc4c41cf6ca)
ChangeLog
NEWS
resolv/nss_dns/dns-host.c
resolv/res_query.c
resolv/res_send.c
This page took 0.037326 seconds and 5 git commands to generate.