From: Eric Dumazet Date: Wed, 11 Dec 2013 16:10:05 +0000 (-0800) Subject: udp: ipv4: fix potential use after free in udp_v4_early_demux() X-Git-Tag: v3.13-rc4~3^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=610438b74496b2986a9025f8e23c134cb638e338;p=pandora-kernel.git udp: ipv4: fix potential use after free in udp_v4_early_demux() pskb_may_pull() can reallocate skb->head, we need to move the initialization of iph and uh pointers after its call. Fixes: 421b3885bf6d ("udp: ipv4: Add udp early demux") Signed-off-by: Eric Dumazet Cc: Shawn Bohrer Signed-off-by: David S. Miller --- Reading git-diff-tree failed