CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
暂无评分
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_sock: Prevent race in socket write iter and sock bind
There is a potential race condition between sock bind and socket write
iter. bind may free the same cmd via mgmt_pending before write iter sends
the cmd, just as syzbot reported in UAF[1].
Here we use hci_dev_lock to synchronize the two, thereby avoiding the
UAF mentioned in [1].
[1]
syzbot reported:
BUG: KASAN: slab-use-after-free in mgmt_pending_remove+0x3b/0x210net/bluetooth/mgmt_util.c:316Read of size 8 at addr ffff888077164818 by task syz.0.17/5989
Call Trace:mgmt_pending_remove+0x3b/0x210net/bluetooth/mgmt_util.c:316set_link_security+0x5c2/0x710net/bluetooth/mgmt.c:1918hci_mgmt_cmd+0x9c9/0xef0net/bluetooth/hci_sock.c:1719hci_sock_sendmsg+0x6ca/0xef0net/bluetooth/hci_sock.c:1839sock_sendmsg_nosecnet/socket.c:727[inline]__sock_sendmsg+0x21c/0x270net/socket.c:742sock_write_iter+0x279/0x360net/socket.c:1195Allocated by task 5989:mgmt_pending_add+0x35/0x140net/bluetooth/mgmt_util.c:296set_link_security+0x557/0x710net/bluetooth/mgmt.c:1910hci_mgmt_cmd+0x9c9/0xef0net/bluetooth/hci_sock.c:1719hci_sock_sendmsg+0x6ca/0xef0net/bluetooth/hci_sock.c:1839sock_sendmsg_nosecnet/socket.c:727[inline]__sock_sendmsg+0x21c/0x270net/socket.c:742sock_write_iter+0x279/0x360net/socket.c:1195Freed by task 5991:mgmt_pending_freenet/bluetooth/mgmt_util.c:311[inline]mgmt_pending_foreach+0x30d/0x380net/bluetooth/mgmt_util.c:257mgmt_index_removed+0x112/0x2f0net/bluetooth/mgmt.c:9477hci_sock_bind+0xbe9/0x1000net/bluetooth/hci_sock.c:1314