SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Generic)  >   BIND Resolver Libraries Vendors:   ISC (Internet Software Consortium)
(NetBSD Issues Fix) Libresolv BIND Resolver Library Buffer Overflows in getnetbyname() and getnetbyaddr() Allow Remote Users to Execute Arbitrary Code
SecurityTracker Alert ID:  1005665
SecurityTracker URL:  http://securitytracker.com/id/1005665
CVE Reference:   CVE-2002-0029   (Links to External Site)
Date:  Nov 20 2002
Impact:   Execution of arbitrary code via network, Root access via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): 4.9.2 to 4.9.10
Description:   A buffer overflow vulnerability was reported in the BIND 4.9.2 through 4.9.10 resolver libraries (but not in the name server). A remote user may be able to execute arbitrary code, possibly with root privileges.

ISC reported that that there are potential stack buffer overflows that can be triggered when code using the libraries to look up network names or address using getnetbyname() or getnetbyaddr().

This can be exploited via DNS caches.

According to ISC, this does not affect the BIND name server.

BIND 8 and BIND 9 libraries are reportedly not affected. Also, BIND 4 libraries up to and including BIND 4.9.1 are not affected.

Impact:   A remote user may be able to cause an application that uses the affected library code to execute arbitrary code. The code would run with the privileges of the application using the library code.
Solution:   NetBSD has released a fix for libc. All binaries statically linked against an affected version of libc must be rebuilt. This includes binaries built by the pkgsrc system, according to NetBSD.

NetBSD reports that any binary that depends on libc with an older major number (compiled before 1997) should be removed from your system.

For NetBSD-current:

Systems running NetBSD-current dated from before 2002-11-15 should be upgraded to NetBSD-current dated 2002-11-15 or later.

The following directories need to be updated from the netbsd-current CVS branch (aka HEAD):
lib/libc/net/getnetnamadr.c

To update from CVS, re-build, and re-install libc and statically-linked binaries:
# cd src
# cvs update -d -P lib/libc/net/getnetnamadr.c

# cd lib/libc
# make obj dependall
# make install

# cd ../../rescue
# make obj dependall
# make install

# cd ../sbin/verifiedexec_load
# make obj dependall
# make install


For NetBSD 1.6:

Systems running NetBSD 1.6 dated from before 2002-11-16 should be upgraded to NetBSD 1.6 dated 2002-11-16 or later.

The following directories need to be updated from the netbsd-1-6 CVS branch:
lib/libc/net/getnetnamadr.c

To update from CVS, re-build, and re-install libc and statically-linked binaries:
# cd src
# cvs update -d -P -r netbsd-1-6 lib/libc/net/getnetnamadr.c

# cd lib/libc
# make obj dependall
# make install

# cd ../../bin
# make obj dependall
# make install
# cd ../sbin
# make obj dependall
# make install


For NetBSD 1.5, 1.5.1, 1.5.2, 1.5.3:

Systems running NetBSD 1.5, 1.5.1, 1.5.2 or 1.5.3 dated from before 2002-11-16 should be upgraded to NetBSD 1.6 dated 2002-11-16 or later.

The following directories need to be updated from the netbsd-1-5 CVS branch:
lib/libc/net/getnetnamadr.c

To update from CVS, re-build, and re-install libc and statically-linked binaries:
# cd src
# cvs update -d -P -r netbsd-1-5 lib/libc/net/getnetnamadr.c

# cd lib/libc
# make obj dependall
# make install

# cd ../../bin
# make obj dependall
# make install
# cd ../sbin
# make obj dependall
# make install

Vendor URL:  www.isc.org/products/BIND/bind-security.html (Links to External Site)
Cause:   Boundary error
Underlying OS:  UNIX (NetBSD)
Underlying OS Comments:  1.6, 1.5.3, 1.5.2, 1.5.1, 1.5

Message History:   This archive entry is a follow-up to the message listed below.
Nov 20 2002 Libresolv BIND Resolver Library Buffer Overflows in getnetbyname() and getnetbyaddr() Allow Remote Users to Execute Arbitrary Code



 Source Message Contents

Subject:  NetBSD Security Advisory 2002-028: Buffer overrun in getnetbyname/getnetbyaddr


-----BEGIN PGP SIGNED MESSAGE-----


		 NetBSD Security Advisory 2002-028
		 =================================

Topic:		Buffer overrun in getnetbyname/getnetbyaddr

Version:	NetBSD-current:	source prior to November 15, 2002
		NetBSD 1.6:	affected
		NetBSD-1.5.3:	affected
		NetBSD-1.5.2:	affected
		NetBSD-1.5.1:	affected
		NetBSD-1.5:	affected

everity:	Possible remote root compromise

Fixed:		NetBSD-current:		November 15, 2002
		NetBSD-1.6 branch:	November 16, 2002
		NetBSD-1.5 branch:	November 16, 2002


Abstract
========

getnetbyname(3) and getnetbyaddr(3) lacked important boundary checks,
and are vulnerable to malicious DNS responses, which could cause a
buffer overrun on the stack.  The vulnerability could cause a remote
root compromise, if a privileged process uses these library functions.


Technical Details
=================

http://www.isc.org/products/BIND/bind-security.html
See the section named: "LIBRESOLV: buffer overrun"


Solutions and Workarounds
=========================

Since the issue is in libc, all statically-linked binaries have to be rebuilt.

Any binary that is statically linked against a vulnerable version of libc
must be rebuilt.  This includes binaries built by the pkgsrc system.

Any binary that depends on libc with an older major number (compiled
before 1997) should be removed.

The following instructions describe how to upgrade your libc
binaries by updating your source tree and rebuilding and
installing a new version of libc.

* NetBSD-current:

	Systems running NetBSD-current dated from before 2002-11-15
	should be upgraded to NetBSD-current dated 2002-11-15 or later.

	The following directories need to be updated from the
	netbsd-current CVS branch (aka HEAD):
		lib/libc/net/getnetnamadr.c

	To update from CVS, re-build, and re-install libc and statically-linked
	binaries:
		# cd src
		# cvs update -d -P lib/libc/net/getnetnamadr.c

		# cd lib/libc
		# make obj dependall
		# make install

		# cd ../../rescue
		# make obj dependall
		# make install

		# cd ../sbin/verifiedexec_load
		# make obj dependall
		# make install


* NetBSD 1.6:

	Systems running NetBSD 1.6 dated from before 2002-11-16 should
	be upgraded to NetBSD 1.6 dated 2002-11-16 or later.

	The following directories need to be updated from the
	netbsd-1-6 CVS branch:
		lib/libc/net/getnetnamadr.c

	To update from CVS, re-build, and re-install libc and statically-linked
	binaries:
		# cd src
		# cvs update -d -P -r netbsd-1-6 lib/libc/net/getnetnamadr.c

		# cd lib/libc
		# make obj dependall
		# make install

		# cd ../../bin
		# make obj dependall
		# make install
		# cd ../sbin
		# make obj dependall
		# make install


* NetBSD 1.5, 1.5.1, 1.5.2, 1.5.3:

	Systems running NetBSD 1.5, 1.5.1, 1.5.2 or 1.5.3 dated from before
	2002-11-16 should be upgraded to NetBSD 1.6 dated 2002-11-16 or
	later.

	The following directories need to be updated from the
	netbsd-1-5 CVS branch:
		lib/libc/net/getnetnamadr.c

	To update from CVS, re-build, and re-install libc and statically-linked
	binaries:
		# cd src
		# cvs update -d -P -r netbsd-1-5 lib/libc/net/getnetnamadr.c

		# cd lib/libc
		# make obj dependall
		# make install

		# cd ../../bin
		# make obj dependall
		# make install
		# cd ../sbin
		# make obj dependall
		# make install


Revision History
================

	2002-11-20	Initial release


More Information
================

Advisories may be updated as new information becomes available.
The most recent version of this advisory (PGP signed) can be found at 
  ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2002-028.txt.asc

Information about NetBSD and NetBSD security can be found at
http://www.NetBSD.ORG/ and http://www.NetBSD.ORG/Security/.


Copyright 2002, The NetBSD Foundation, Inc.  All Rights Reserved.

$NetBSD: NetBSD-SA2002-028.txt,v 1.8 2002/11/19 16:50:45 david Exp $


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBPdpxhD5Ru2/4N2IFAQHVwAP/Vs3uaJBDJR0zY+iq9ZT/1Fis+4Cia2Jp
N/aj2NyDYOaUssIgV/V5UVg0CwT79DRmX90AwIs073DlcoO1LIZrtufGnexerRP/
eZQ8h7uE4NsG4M/MZ2gMvE0+N5NAyPy1l+JNjNeHghw48asitI54nGWMFO5L63yv
VKxCTFtsFYE=
=WRbF
-----END PGP SIGNATURE-----

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2022, SecurityGlobal.net LLC