aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/lapbether.c
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2020-07-24 16:45:51 +0000
committerDavid S. Miller <[email protected]>2020-07-25 00:29:52 +0000
commitaf9f691f0f5bdd1ade65a7b84927639882d7c3e5 (patch)
treedefe494f1be7a5e5a29b3f660cb713dc25dd9073 /drivers/net/wan/lapbether.c
parentMerge tag 'wireless-drivers-2020-07-24' of git://git.kernel.org/pub/scm/linux... (diff)
downloadkernel-af9f691f0f5bdd1ade65a7b84927639882d7c3e5.tar.gz
kernel-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: [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]> Reviewed-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/wan/lapbether.c')
0 files changed, 0 insertions, 0 deletions