[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20131210.225906.1861492646485883383.davem@davemloft.net>
Date: Tue, 10 Dec 2013 22:59:06 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: davej@...hat.com, sbohrer@...advisors.com, netdev@...r.kernel.org
Subject: Re: [PATCH] udp: ipv4: fix an use after free in __udp4_lib_rcv()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Tue, 10 Dec 2013 18:07:23 -0800
> From: Eric Dumazet <edumazet@...gle.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@...hat.com>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> Cc: Shawn Bohrer <sbohrer@...advisors.com>
Applied, thanks Eric.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists