Avoid infinite loop in nss_dns getnetbyname (CVE-2014-9402, #1175370)
This commit is contained in:
parent
07eee66da3
commit
ad163810f2
21
glibc-rh1175370.patch
Normal file
21
glibc-rh1175370.patch
Normal file
@ -0,0 +1,21 @@
|
||||
commit 11e3417af6e354f1942c68a271ae51e892b2814d
|
||||
Author: Florian Weimer <fweimer@redhat.com>
|
||||
Date: Mon Dec 15 17:41:13 2014 +0100
|
||||
|
||||
Avoid infinite loop in nss_dns getnetbyname [BZ #17630]
|
||||
|
||||
diff --git a/resolv/nss_dns/dns-network.c b/resolv/nss_dns/dns-network.c
|
||||
index 0a77c8b..08cf0a6 100644
|
||||
--- a/resolv/nss_dns/dns-network.c
|
||||
+++ b/resolv/nss_dns/dns-network.c
|
||||
@@ -398,8 +398,8 @@ getanswer_r (const querybuf *answer, int anslen, struct netent *result,
|
||||
|
||||
case BYNAME:
|
||||
{
|
||||
- char **ap = result->n_aliases++;
|
||||
- while (*ap != NULL)
|
||||
+ char **ap;
|
||||
+ for (ap = result->n_aliases; *ap != NULL; ++ap)
|
||||
{
|
||||
/* Check each alias name for being of the forms:
|
||||
4.3.2.1.in-addr.arpa = net 1.2.3.4
|
@ -208,6 +208,7 @@ Patch0051: %{name}-disable-rwlock-elision.patch
|
||||
##############################################################################
|
||||
Patch1001: %{name}-rh1133508.patch
|
||||
Patch1002: %{name}-rh1167569.patch
|
||||
Patch1003: %{name}-rh1175370.patch
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
@ -577,6 +578,7 @@ package or when debugging this package.
|
||||
%patch1001 -p1
|
||||
%patch0051 -p1
|
||||
%patch1002 -p1
|
||||
%patch1003 -p1
|
||||
|
||||
##############################################################################
|
||||
# %%prep - Additional prep required...
|
||||
@ -1714,6 +1716,7 @@ rm -f *.filelist*
|
||||
%changelog
|
||||
* Fri Feb 27 2015 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.20-8
|
||||
- wordexp fails to honour WRDE_NOCMD (CVE-2014-7817, #1167569).
|
||||
- Avoid infinite loop in nss_dns getnetbyname (CVE-2014-9402, #1175370).
|
||||
|
||||
* Tue Jan 06 2015 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.20-7
|
||||
- Remove LIB_LANG since we don't install locales in /usr/lib/locale anymore.
|
||||
|
Loading…
Reference in New Issue
Block a user