Skip to content
Commit eb7f54b9 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by David S. Miller
Browse files

kcm: Fix use-after-free caused by clonned sockets



(resend for properly queueing in patchwork)

kcm_clone() creates kernel socket, which does not take net counter.
Thus, the net may die before the socket is completely destructed,
i.e. kcm_exit_net() is executed before kcm_done().

Reported-by: default avatar <syzbot+5f1a04e374a635efc426@syzkaller.appspotmail.com>
Signed-off-by: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 664088f8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment