netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: eric.dumazet@gmail.com
Cc: davej@redhat.com, sbohrer@rgmadvisors.com, netdev@vger.kernel.org
Subject: Re: [PATCH] udp: ipv4: fix an use after free in __udp4_lib_rcv()
Date: Tue, 10 Dec 2013 22:59:06 -0500 (EST)	[thread overview]
Message-ID: <20131210.225906.1861492646485883383.davem@davemloft.net> (raw)
In-Reply-To: <1386727643.30495.363.camel@edumazet-glaptop2.roam.corp.google.com>

From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Tue, 10 Dec 2013 18:07:23 -0800

> From: Eric Dumazet <edumazet@google.com>
> 
> Dave Jones reported a use after free in UDP stack :
 ...
> We need to keep a reference on the socket, by using skb_steal_sock()
> at the right place.
> 
> Note that another patch is needed to fix a race in
> udp_sk_rx_dst_set(), as we hold no lock protecting the dst.
> 
> Fixes: 421b3885bf6d ("udp: ipv4: Add udp early demux")
> Reported-by: Dave Jones <davej@redhat.com>
> Signed-off-by: Eric Dumazet <edumazet@google.com>
> Cc: Shawn Bohrer <sbohrer@rgmadvisors.com>

Applied, thanks Eric.

  reply	other threads:[~2013-12-11  3:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-11  0:39 BUG: held lock freed! (udp_queue_rcv_skb) Dave Jones
2013-12-11  0:54 ` Eric Dumazet
2013-12-11  2:07   ` [PATCH] udp: ipv4: fix an use after free in __udp4_lib_rcv() Eric Dumazet
2013-12-11  3:59     ` David Miller [this message]
2013-12-11 16:10     ` [PATCH] udp: ipv4: fix potential use after free in udp_v4_early_demux() Eric Dumazet
2013-12-11 21:16       ` David Miller
2013-12-11 22:46       ` [PATCH] udp: ipv4: must add synchronization in udp_sk_rx_dst_set() Eric Dumazet
2013-12-12  1:22         ` David Miller
2013-12-15 18:30           ` Eric Dumazet

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=20131210.225906.1861492646485883383.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=davej@redhat.com \
    --cc=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=sbohrer@rgmadvisors.com \
    /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;
as well as URLs for NNTP newsgroup(s).