CVE-2025-68305 in Linux
Resumen
por VulDB • 2026-05-10
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad:
Bluetooth: hci_sock: Prevenir una condición de carrera en la iteración de escritura del socket y el bind del socket
Existe una posible condición de carrera entre el bind del socket y la iteración de escritura del socket. El bind puede liberar el mismo comando a través de mgmt_pending antes de que la iteración de escritura envíe el comando, tal como lo reportó syzbot en un Use-After-Free (UAF)[1].
Aquí utilizamos hci_dev_lock para sincronizar ambas operaciones, evitando así el UAF mencionado en [1].
[1]
syzbot reportó: BUG: KASAN: slab-use-after-free en mgmt_pending_remove+0x3b/0x210 net/bluetooth/mgmt_util.c:316 Lectura de tamaño 8 en la dirección ffff888077164818 por la tarea syz.0.17/5989 Rastro de llamada: mgmt_pending_remove+0x3b/0x210 net/bluetooth/mgmt_util.c:316 set_link_security+0x5c2/0x710 net/bluetooth/mgmt.c:1918 hci_mgmt_cmd+0x9c9/0xef0 net/bluetooth/hci_sock.c:1719 hci_sock_sendmsg+0x6ca/0xef0 net/bluetooth/hci_sock.c:1839 sock_sendmsg_nosec net/socket.c:727 [inline]
__sock_sendmsg+0x21c/0x270 net/socket.c:742 sock_write_iter+0x279/0x360 net/socket.c:1195
Asignado por la tarea 5989: mgmt_pending_add+0x35/0x140 net/bluetooth/mgmt_util.c:296 set_link_security+0x557/0x710 net/bluetooth/mgmt.c:1910 hci_mgmt_cmd+0x9c9/0xef0 net/bluetooth/hci_sock.c:1719 hci_sock_sendmsg+0x6ca/0xef0 net/bluetooth/hci_sock.c:1839 sock_sendmsg_nosec net/socket.c:727 [inline]
__sock_sendmsg+0x21c/0x270 net/socket.c:742 sock_write_iter+0x279/0x360 net/socket.c:1195
Liberado por la tarea 5991: mgmt_pending_free net/bluetooth/mgmt_util.c:311 [inline]
mgmt_pending_foreach+0x30d/0x380 net/bluetooth/mgmt_util.c:257 mgmt_index_removed+0x112/0x2f0 net/bluetooth/mgmt.c:9477 hci_sock_bind+0xbe9/0x1000 net/bluetooth/hci_sock.c:1314
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.