LinuxSecurity.com
Share your story
The central voice for Linux and Open Source security news
Home News Topics Advisories HOWTOs Features Newsletters About Register

Welcome!
Sign up!
EnGarde Community
Login
Polls
What is the most important Linux security technology?
 
Advisories
Community
Linux Events
Linux User Groups
Link to Us
Security Center
Book Reviews
Security Dictionary
Security Tips
SELinux
White Papers
Featured Blogs
All About Linux
DanWalsh LiveJournal
Securitydistro
Latest Newsletters
Linux Security Week: April 7th, 2014
Linux Advisory Watch: April 4th, 2014
Subscribe
LinuxSecurity Newsletters
E-mail:
Choose Lists:
About our Newsletters
RSS Feeds
Get the LinuxSecurity news you want faster with RSS
Powered By

  
NetBSD: core denial of service vulnerability Print E-mail
User Rating:      How can I rate this item?
Posted by LinuxSecurity.com Team   
NetBSD It is possible to crash an OSI connected system remotely by sending ita carefully prepared OSI networking packet.

		 NetBSD Security Advisory 2003-010
		 =================================

Topic:		remote panic in OSI networking code

Version:	NetBSD-current:	source prior to May 26, 2003
		NetBSD 1.6.1:	affected
		NetBSD 1.6:	affected
		NetBSD-1.5.3:	affected
		NetBSD-1.5.2:	affected
		NetBSD-1.5.1:	affected
		NetBSD-1.5:	affected

Severity:	remote system crash possible on OSI connected systems

Fixed:		NetBSD-current:		May 26, 2003
		NetBSD-1.6 branch:	May 26, 2003 (1.6.2 will include the fix)
		NetBSD-1.5 branch:	May 28, 2003


Abstract
========

It is possible to crash an OSI connected system remotely by sending it
a carefully prepared OSI networking packet.


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

The OSI networking kernel (sys/netiso) contains a function that sends
error indications to the sender of an OSI packet in certain error
conditions.  This function prepares its own packet header mbuf, but was
never converted to use a "PKTHDR" mbuf as has been required by the
BSD networking stack for a long time.

Networking drivers sending a packet prepared in this way will either
panic complaining about this condition (if the kernel was compiled
with "options DEBUG") or crash in erratic ways (if they try to use
the invalid information in a header mbuf not containing the pkthdr
fields).


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

How to determine if your system is vulnerable:

OSI is not a commonly used network stack, and most NetBSD users will not
be affected by this advisory. If 'ifconfig -a | grep iso' does not show
iso addresses assigned on any interface, the system is not vulnerable.

Any system with the abovementioned kernel date that has OSI addresses
configured is vulnerable.

Workaround: don't configure OSI addresses onto your system, or disable
any OSI addresses configured, or configure and boot a kernel without
``options OSI''.  This will disable any OSI communications.

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


* NetBSD-current:

	Systems running NetBSD-current dated from before 2003-05-25
	should be upgraded to NetBSD-current dated 2003-05-26 or later.

	The following file needs to be updated from the
	netbsd-current CVS branch (aka HEAD):
		sys/netiso/clnp_er.c

	To update from CVS, re-build, and install your kernel, and reboot

		% cd src
		% cvs update -d -P sys/netiso

		% cd sys/arch/ARCH/conf
		% config KERNCONFFILE
		% cd ../compile/KERNCONFFILE
		% make clean depend;make

		% su
		# cp netbsd /
		# reboot


* NetBSD 1.6, 1.6.1:

	The binary distribution of NetBSD 1.6.1 is vulnerable.

	Systems running NetBSD 1.6 sources dated from before
	2003-05-25 should be upgraded from NetBSD 1.6 sources dated
	2003-05-26 or later.

	NetBSD 1.6.2 will include the fix.

	The following file needs to be updated from the
	netbsd-1-6 CVS branch:
		sys/netiso/clnp_er.c

	To update from CVS, re-build, and install a patched kernel:

		% cd src
		% cvs update -d -P -r netbsd-1-6 sys/netiso

		% cd sys/arch/ARCH/conf
		% config KERNCONFFILE
		% cd ../compile/KERNCONFFILE
		% make clean depend;make

		% su
		# cp netbsd /
		# reboot

	Alternatively, apply the following patch (with potential offset
	differences):
	 	ftp://ftp.NetBSD.org/pub/NetBSD/security/patches/SA2003-010-osi.patch

	To patch, re-build and install the kernel, then reboot:

		# cd src
		# patch < /path/to/SA2003-010-osi.patch

		% cd sys/arch/ARCH/conf
		% config KERNCONFFILE
		% cd ../compile/KERNCONFFILE
		% make clean depend;make

		% su
		# cp netbsd /
		# reboot


* NetBSD 1.5, 1.5.1, 1.5.2, 1.5.3:

	The binary distribution of NetBSD 1.5.3 is vulnerable.

	Systems running NetBSD 1.5, 1.5.1, 1.5.2, or 1.5.3 sources dated
	from before 2003-05-27 should be upgraded from NetBSD 1.5.*
	sources dated 2003-05-28 or later.

	The following files need to be updated from the
	netbsd-1-5 CVS branch:
		sys/netiso/clnp_er.c

	To update from CVS, re-build, and install a patched kernel:

		% cd src
		% cvs update -d -P -r netbsd-1-5 sys/netiso

		% cd sys/arch/ARCH/conf
		% config KERNCONFFILE
		% cd ../compile/KERNCONFFILE
		% make clean depend;make

		% su
		# cp netbsd /
		# reboot

	Alternatively, apply the following patch (with potential offset
	differences):
	 	ftp://ftp.NetBSD.org/pub/NetBSD/security/patches/SA2003-010-osi.patch

	To patch, re-build and install the kernel, then reboot:

		# cd src
		# patch < /path/to/SA2003-010-osi.patch

		% cd sys/arch/ARCH/conf
		% config KERNCONFFILE
		% cd ../compile/KERNCONFFILE
		% make clean depend;make

		% su
		# cp netbsd /
		# reboot


Thanks To
=========

Ignatios Souvatzis


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

	2003-08-04	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-SA2003-010.txt.asc

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


Copyright 2003, The NetBSD Foundation, Inc.  All Rights Reserved.
Redistribution permitted only in full, unmodified form.

$NetBSD: NetBSD-SA2003-010.txt,v 1.8 2003/08/04 16:02:47 david Exp $



 
< Prev   Next >
    
Partner

 

Latest Features
Peter Smith Releases Linux Network Security Online
Securing a Linux Web Server
Password guessing with Medusa 2.0
Password guessing as an attack vector
Squid and Digest Authentication
Squid and Basic Authentication
Demystifying the Chinese Hacking Industry: Earning 6 Million a Night
Free Online security course (LearnSIA) - A Call for Help
What You Need to Know About Linux Rootkits
Review: A Practical Guide to Fedora and Red Hat Enterprise Linux - Fifth Edition
Yesterday's Edition
Canadians arrest a Heartbleed hacker
Partner Sponsor

Community | HOWTOs | Blogs | Features | Book Reviews | Networking
 Security Projects |  Latest News |  Newsletters |  SELinux |  Privacy |  Home
 Hardening |   About Us |   Advertise |   Legal Notice |   RSS |   Guardian Digital
(c)Copyright 2014 Guardian Digital, Inc. All rights reserved.