summaryrefslogtreecommitdiffstats
path: root/net/rxrpc
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2020-07-24 18:45:51 +0200
committerDavid S. Miller <davem@davemloft.net>2020-07-25 02:29:52 +0200
commitaf9f691f0f5bdd1ade65a7b84927639882d7c3e5 (patch)
treedefe494f1be7a5e5a29b3f660cb713dc25dd9073 /net/rxrpc
parentMerge tag 'wireless-drivers-2020-07-24' of git://git.kernel.org/pub/scm/linux... (diff)
downloadlinux-af9f691f0f5bdd1ade65a7b84927639882d7c3e5.tar.xz
linux-af9f691f0f5bdd1ade65a7b84927639882d7c3e5.zip
qrtr: orphan socket in qrtr_release()
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: syzbot+6720d64f31c081c2f708@syzkaller.appspotmail.com Fixes: 28fb4e59a47d ("net: qrtr: Expose tunneling endpoint to user space") Cc: Bjorn Andersson <bjorn.andersson@linaro.org> Cc: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc')
0 files changed, 0 insertions, 0 deletions