[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180917.075846.179673509232119753.davem@davemloft.net>
Date: Mon, 17 Sep 2018 07:58:46 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: edumazet@...gle.com
Cc: netdev@...r.kernel.org, eric.dumazet@...il.com
Subject: Re: [PATCH net] ipv6: fix possible use-after-free in ip6_xmit()
From: Eric Dumazet <edumazet@...gle.com>
Date: Fri, 14 Sep 2018 12:02:31 -0700
> In the unlikely case ip6_xmit() has to call skb_realloc_headroom(),
> we need to call skb_set_owner_w() before consuming original skb,
> otherwise we risk a use-after-free.
>
> Bring IPv6 in line with what we do in IPv4 to fix this.
>
> Fixes: 1da177e4c3f41 ("Linux-2.6.12-rc2")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> Reported-by: syzbot <syzkaller@...glegroups.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists