Re: [PATCH] Bluetooth: prefetch channel before killing sock

From: Marcel Holtmann
Date: Wed Feb 05 2020 - 03:06:05 EST


Hi Hillf,

> Prefetch channel before killing sock in order to fix UAF like
>
> BUG: KASAN: use-after-free in l2cap_sock_release+0x24c/0x290 net/bluetooth/l2cap_sock.c:1212
> Read of size 8 at addr ffff8880944904a0 by task syz-fuzzer/9751
>
> Reported-by: syzbot+c3c5bdea7863886115dc@xxxxxxxxxxxxxxxxxxxxxxxxx
> Fixes: 6c08fc896b60 ("Bluetooth: Fix refcount use-after-free issue")
> Cc: Manish Mandlik <mmandlik@xxxxxxxxxx>
> Signed-off-by: Hillf Danton <hdanton@xxxxxxxx>
> ---

patch has been applied to bluetooth-next tree.

Regards

Marcel