From: Cong Wang <[email protected]> Date: Fri, 24 Jul 2020 09:45:51 -0700
> We have to detach sock from socket in qrtr_release(), > otherwise skb->sk may still reference to this socket > when the skb is released in tun->queue, particularly > sk->sk_wq still points to &sock->wq, which leads to > a UAF. > > Reported-and-tested-by: [email protected] > Fixes: 28fb4e59a47d ("net: qrtr: Expose tunneling endpoint to user space") > Cc: Bjorn Andersson <[email protected]> > Cc: Eric Dumazet <[email protected]> > Signed-off-by: Cong Wang <[email protected]> Applied and queued up for -stable, thanks.
