+22
−0
+12
−6
Loading
mainline inclusion from mainline-v6.12-rc5 commit 1bf4470a3939c678fb822073e9ea77a0560bc6bb category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IB2BXB CVE: CVE-2024-50125 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1bf4470a3939c678fb822073e9ea77a0560bc6bb -------------------------------- conn->sk maybe have been unlinked/freed while waiting for sco_conn_lock so this checks if the conn->sk is still valid by checking if it part of sco_sk_list. Reported-by:<syzbot+4c0d0c4cde787116d465@syzkaller.appspotmail.com> Tested-by:
<syzbot+4c0d0c4cde787116d465@syzkaller.appspotmail.com> Closes: https://syzkaller.appspot.com/bug?extid=4c0d0c4cde787116d465 Fixes: ba316be1 ("Bluetooth: schedule SCO timeouts with delayed_work") Signed-off-by:
Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Conflicts: net/bluetooth/af_bluetooth.c include/net/bluetooth/bluetooth.h [commit 464c702f and 6bfa273e wasnt merged, which lead to context conflicts.] Signed-off-by:
Dong Chenchen <dongchenchen2@huawei.com>