From: Eric Dumazet <eric.dumazet@gmail.com>
To: Ian Campbell <Ian.Campbell@eu.citrix.com>
Cc: David Miller <davem@davemloft.net>,
Jeremy Fitzhardinge <jeremy@goop.org>,
Andrew Morton <akpm@linux-foundation.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
Chris Wright <chrisw@sous-sol.org>,
"bugzilla-daemon@bugzilla.kernel.org"
<bugzilla-daemon@bugzilla.kernel.org>,
"bugme-daemon@bugzilla.kernel.org"
<bugme-daemon@bugzilla.kernel.org>,
James Chapman <jchapman@katalix.com>,
"heil@terminal-consulting.de" <heil@terminal-consulting.de>,
"Xen-devel@lists.xensource.com" <Xen-devel@lists.xensource.com>
Subject: Re: [Bugme-new] [Bug 16529] New: xennet driver crashes when using with pseudowire aka l2tpv3
Date: Thu, 26 Aug 2010 10:34:43 +0200 [thread overview]
Message-ID: <1282811683.2476.133.camel@edumazet-laptop> (raw)
In-Reply-To: <1282810448.12544.3200.camel@zakaz.uk.xensource.com>
Le jeudi 26 août 2010 à 09:14 +0100, Ian Campbell a écrit :
> On Thu, 2010-08-26 at 09:03 +0100, Eric Dumazet wrote:
> > Here is the patch, could you test it please ?
> >
> > Thanks !
> >
> > [PATCH] l2tp: test for malicious frames in l2tp_eth_dev_recv()
> >
> > close https://bugzilla.kernel.org/show_bug.cgi?id=16529
> >
> > Before calling dev_forward_skb(), we should make sure skb contains at
> > least an ethernet header, even if length included in upper layer said
> > so.
>
> Does this imply that there is some problem with xen-netfront setting
> skb->len or skb->data_len or something incorrectly? It's not clear where
> data_len has come from in this context.
data_len is a 16bit field provided in a prior encapsulation header,
provided by user (untrusted source)
Some buggy or malicious software sent an invalid frame,
< encapsulation [len=1000] > < 'runt' eth frame (len<14) >
Another fix would be to change l2tp_recv_dequeue_skb(), and check
L2TP_SKB_CB(skb)->length against skb->len, before calling
(*session->recv_skb)(session, skb, length);
I prefer the one liner patch I sent you, as a minimum fix.
next prev parent reply other threads:[~2010-08-26 8:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-16529-10286@https.bugzilla.kernel.org/>
2010-08-25 22:31 ` [Bugme-new] [Bug 16529] New: xennet driver crashes when using with pseudowire aka l2tpv3 Andrew Morton
2010-08-25 22:56 ` Jeremy Fitzhardinge
2010-08-26 7:10 ` Ian Campbell
2010-08-26 7:22 ` Eric Dumazet
2010-08-26 8:03 ` Eric Dumazet
2010-08-26 8:14 ` Ian Campbell
2010-08-26 8:34 ` Eric Dumazet [this message]
2010-08-26 8:55 ` Ian Campbell
2010-08-26 9:44 ` Eric Dumazet
2010-08-26 20:30 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1282811683.2476.133.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=Ian.Campbell@eu.citrix.com \
--cc=Xen-devel@lists.xensource.com \
--cc=akpm@linux-foundation.org \
--cc=bugme-daemon@bugzilla.kernel.org \
--cc=bugzilla-daemon@bugzilla.kernel.org \
--cc=chrisw@sous-sol.org \
--cc=davem@davemloft.net \
--cc=heil@terminal-consulting.de \
--cc=jchapman@katalix.com \
--cc=jeremy@goop.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox