NetBSD Security Advisory 2003-010: remote panic in OSI networking code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

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

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.tx...

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 $

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iQCVAwUBPy6Eaj5Ru2/4N2IFAQHdLQP/T1kvZZQIr3S/F/JbfJCxWrQbkwGkUONu
AuyC7xxuAatC5ZvzKqsMr/+0nYxXyouUQaplwK+gKLFJQB+HgAqK56eZU74yaPuf
1+XVWvuVChXyENDtiZW3+riJMWzXaxqa56HyOE92WA6DSTFXSqzq2x5kihw7kLcI
ZQ7A1MCZV00=
=+avA
-----END PGP SIGNATURE-----

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Mailing list for NetBSD/x86_64 created, Frank van der Linden, (Thu Feb 27, 8:07 am)
Announcing NetBSD 5.0.1, Soren Jacobsen, (Sun Aug 2, 4:48 pm)
NetBSD Security Advisory 2003-010: remote panic in OSI netwo..., NetBSD Security Officer, (Mon Aug 4, 2:13 pm)
10 years of pkgsrc - the interviews, Mark Weinem, (Wed Oct 17, 10:26 am)
NetBSD Security Advisory 2009-001: PF firewall remote Denial..., NetBSD Security Officer, (Tue Jun 23, 4:50 pm)
NetBSD Security Advisory 2004-002: Inconsistent IPv6 path MT..., NetBSD Security-Officer, (Thu Feb 19, 9:36 am)
anoncvs server is back on line, Christos Zoulas, (Fri Jan 14, 4:19 pm)
The pkgsrc-2005Q3 Branch, Alistair Crooks, (Mon Sep 26, 5:44 pm)
NetBSD Security Advisory 2005-005: cgd(4) key destruction on..., NetBSD Security-Officer, (Mon Nov 7, 6:56 pm)
NetBSD Security Advisory 2008-005: OpenSSH Multiple issues, NetBSD Security-Officer, (Mon Apr 21, 6:27 pm)
End of life for the NetBSD 1.6 branch, Matthias Scheler, (Tue May 16, 12:58 pm)
Donations for server upgrades, Michael Graff, (Fri Jul 26, 6:56 pm)
NetBSD Security Advisory 2006-021: Integer overflows in CID-..., NetBSD Security-Officer, (Thu Sep 21, 6:13 pm)
NetBSD Security Advisory 2008-013: IPv6 Neighbor Discovery P..., NetBSD Security-Officer, (Mon Oct 27, 6:44 pm)