Re: [syzbot] [bluetooth?] KASAN: slab-use-after-free Read in skb_release_head_state

From: Hillf Danton
Date: Wed May 01 2024 - 04:49:04 EST


On Tue, 30 Apr 2024 21:19:20 -0700
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: 50dffbf77180 Merge tag 'for-v6.9-rc' of git://git.kernel.o..
> git tree: upstream
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10ba57bb180000

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 50dffbf77180

--- l/net/bluetooth/hci_request.c
+++ y/net/bluetooth/hci_request.c
@@ -181,7 +181,6 @@ int __hci_req_sync(struct hci_dev *hdev,
break;
}

- kfree_skb(hdev->req_skb);
hdev->req_skb = NULL;
hdev->req_status = hdev->req_result = 0;

--