NetBSD Security Advisory 2009-002: tcpdump multiple denial of service and arbitrary code execution issues

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: NetBSD Announcements <netbsd-announce@...>
Date: Tuesday, June 23, 2009 - 4:59 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

NetBSD Security Advisory 2009-002
=================================

Topic: tcpdump multiple denial of service and arbitrary code
execution issues

Version: NetBSD-current: affected before July 20, 2007
NetBSD 5.0: not affected
NetBSD 4.0.*: not affected
NetBSD 4.0: affected

Severity: Denial of Service, Arbitrary Code Execution

Fixed: NetBSD-current: July 20, 2007
NetBSD-4-0 branch: July 21, 2008
(4.0.2 will include the fix)
NetBSD-4 branch: July 21, 2008
(4.1 will include the fix)
pkgsrc: tcpdump-3.9.7 corrects the issue

Please note that NetBSD releases prior to 4.0 are no longer supported.
It is recommended that all users upgrade to a supported release.

Abstract
========

A number of issuses exist in the version of tcpdump(1) shipped with
NetBSD 4.0 allowing a remote attacker to hang or crash the
application and to execute arbitrary code via specially crafted
packages.

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

An integer overflow in the BGP dissector allows remote attackers
to execute arbitrary code via crafted TLVs in a BGP packet.

An infinite loop error in the BGP dissector allows remote attackers
to cause an application hang by sending an invalid prefix.

An off-by-one error in the 802.11 dissector result printing code
allows remote attackers to crash the application.

An infinite loop error in the ISIS dissector allows remote attackers
to cause an application hang using GRE packets of zero length.

A length verification error in the RSVP dissector allows remote
attackers to crash the application by sending a RSVP packet of
length 4.

For more details, please see CVE-2007-1218, CVE-2007-3798,
CAN-2005-1267, CAN-2005-1278, CAN-2005-1279 and CAN-2005-1280.

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

The 4.0.1 release of NetBSD resolves this issue, so a possible
solution is to upgrade to NetBSD 4.0.1 or 5.0.
As a temporary workaround disable tcpdump(1) from the base OS and use the
tcpdump-3.9.7 package from pkgsrc which contains a fix.

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

* NetBSD-current:

Systems running NetBSD-current dated from before 2007-07-20
should be upgraded to NetBSD-current dated 2007-07-21 or later.

The following directories need to be updated from the
netbsd-current CVS branch (aka HEAD):
dist/tcpdump

To update from CVS, re-build, and re-install tcpdump:
# cd src
# cvs update -d -P dist/tcpdump
# cd usr.sbin/tcpdump

# make USETOOLS=no cleandir dependall
# make USETOOLS=no install

* NetBSD 4.0:

The binary distribution of NetBSD 4.0 is vulnerable.

Systems running NetBSD 4.0 sources dated from before
2008-07-21 should be upgraded from NetBSD 4.0 sources dated
2008-07-22 or later.

The following directories need to be updated from the
netbsd-4 CVS branch:
dist/tcpdump

To update from CVS, re-build, and re-install tcpdump:

# cd src
# cvs update -d -P -r netbsd-4-0 dist/tcpdump
# cd usr.sbin/tcpdump

# make USETOOLS=no cleandir dependall
# make USETOOLS=no install

Thanks To
=========

Moritz Jodeit, mu-b of digit-labs.org and Vade79 for finding and
reporting the issue.

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

2009-06-22 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-SA2009-002.tx...

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

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

$NetBSD: NetBSD-SA2009-002.txt,v 1.1 2009/06/22 19:31:01 tonnerre Exp $

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (NetBSD)

iQCVAwUBSj/8Pz5Ru2/4N2IFAQJwAgQArhKtjrbCGGk0s4bygOqxt5LsNqguTHFZ
YTPmU51AFQnxMRyzwnOxW9zgTlIyaR6vMDjyCyNm+ewARvlGpfkiZjg6CwCesRV5
/cAooLhV8gjAe37y/2IEmPViuXRDwa0WngjHxDr8uVeMKcWLIQ8naoI//6DZDBz/
ft2GwdxEIi4=
=jtOE
-----END PGP SIGNATURE-----

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

Messages in current thread:
NetBSD Security Advisory 2003-001: Encryption weakness in Op..., NetBSD Security Officer, (Tue Mar 4, 2:31 am)
NetBSD Security Advisory 2004-003: OpenSSL 0.9.6 ASN.1 parse..., NetBSD Security-Officer, (Thu Feb 19, 9:36 am)
NetBSD Security Advisory 2008-014: Cross-site request forger..., NetBSD Security-Officer, (Mon Oct 27, 6:46 pm)
End of life for the NetBSD 1.5 branch, James Chacon, (Thu Jan 27, 12:04 am)
NetBSD Security Advisory 2005-006: Multiple vulnerabilities ..., NetBSD Security-Officer, (Mon Nov 7, 6:57 pm)
NetBSD Security Advisory 2009-002: tcpdump multiple denial o..., NetBSD Security Officer, (Tue Jun 23, 4:59 pm)
NetBSD Security Advisory 2008-006: Integer overflow in strfm..., NetBSD Security-Officer, (Mon Apr 21, 6:28 pm)
NetBSD 4.0 Release Candidate 3 available for download, Pavel Cahyna, (Fri Oct 19, 2:51 am)
OpenBSD moderation removal, Christos Zoulas, (Tue Jul 30, 10:54 am)
NetBSD Bugathon: Not quite dead, Elad Efrat, (Sun Sep 24, 7:45 pm)