summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2026-08-09 20:42:41 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-08-11 15:40:12 -0400
commitd1b752f552896275e639370288ec44e33e6636c6 (patch)
tree1fcb461c09f857950d6894e5854f93106b725cb1 /scripts/objdiff
parentbc2791e60e0829e15a6f312006f4a667426deaf6 (diff)
downloadlinux-next-d1b752f552896275e639370288ec44e33e6636c6.tar.gz
linux-next-d1b752f552896275e639370288ec44e33e6636c6.zip
Bluetooth: L2CAP: access chan->conn safely in get/setsockopt
Since commit b66774b48dd9 ("Bluetooth: L2CAP: Fix UAF in channel timeout by holding conn ref") l2cap_chan::conn has held reference and remains non-NULL also after the corresponding hci_conn is deleted. In this state accessing various fields eg. hci_conn::hdev is invalid, which leads to KASAN crash in l2cap_sock_setsockopt() access of conn->hcon->hdev. Check l2cap_chan::conn.hcon corresponds to an alive hci_conn before trying to use it in l2cap_sock.c. Hold l2cap_chan_lock() in getsockopt/setsockopt to ensure it stays alive, and to avoid data races in l2cap_chan fields. Fixes: b66774b48dd9 ("Bluetooth: L2CAP: Fix UAF in channel timeout by holding conn ref") Reported-by: syzbot+b106284c2a0b7bc80cf9@syzkaller.appspotmail.com Link: https://syzkaller.appspot.com/bug?extid=b106284c2a0b7bc80cf9 Signed-off-by: Pauli Virtanen <pav@iki.fi> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions