commit | 64199fc0a46ba211362472f7f942f900af9492fd | [log] [tgz] |
---|---|---|
author | Eric Dumazet <edumazet@google.com> | Sun Sep 30 11:33:39 2018 -0700 |
committer | David S. Miller <davem@davemloft.net> | Tue Oct 02 22:32:05 2018 -0700 |
tree | 35b727833c02a05799aa522edde425018b33160a | |
parent | b9f1bcb22091aacc0202c9ff6181e696cd1dc7dc [diff] |
ipv4: fix use-after-free in ip_cmsg_recv_dstaddr() Caching ip_hdr(skb) before a call to pskb_may_pull() is buggy, do not do it. Fixes: 2efd4fca703a ("ip: in cmsg IP(V6)_ORIGDSTADDR call pskb_may_pull") Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Willem de Bruijn <willemb@google.com> Reported-by: syzbot <syzkaller@googlegroups.com> Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>