CVE-2025-40309
Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
08/12/2025
Última modificación:
08/12/2025
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
Bluetooth: SCO: Fix UAF on sco_conn_free<br />
<br />
BUG: KASAN: slab-use-after-free in sco_conn_free net/bluetooth/sco.c:87 [inline]<br />
BUG: KASAN: slab-use-after-free in kref_put include/linux/kref.h:65 [inline]<br />
BUG: KASAN: slab-use-after-free in sco_conn_put+0xdd/0x410<br />
net/bluetooth/sco.c:107<br />
Write of size 8 at addr ffff88811cb96b50 by task kworker/u17:4/352<br />
<br />
CPU: 1 UID: 0 PID: 352 Comm: kworker/u17:4 Not tainted<br />
6.17.0-rc5-g717368f83676 #4 PREEMPT(voluntary)<br />
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014<br />
Workqueue: hci13 hci_cmd_sync_work<br />
Call Trace:<br />
<br />
__dump_stack lib/dump_stack.c:94 [inline]<br />
dump_stack_lvl+0x10b/0x170 lib/dump_stack.c:120<br />
print_address_description mm/kasan/report.c:378 [inline]<br />
print_report+0x191/0x550 mm/kasan/report.c:482<br />
kasan_report+0xc4/0x100 mm/kasan/report.c:595<br />
sco_conn_free net/bluetooth/sco.c:87 [inline]<br />
kref_put include/linux/kref.h:65 [inline]<br />
sco_conn_put+0xdd/0x410 net/bluetooth/sco.c:107<br />
sco_connect_cfm+0xb4/0xae0 net/bluetooth/sco.c:1441<br />
hci_connect_cfm include/net/bluetooth/hci_core.h:2082 [inline]<br />
hci_conn_failed+0x20a/0x2e0 net/bluetooth/hci_conn.c:1313<br />
hci_conn_unlink+0x55f/0x810 net/bluetooth/hci_conn.c:1121<br />
hci_conn_del+0xb6/0x1110 net/bluetooth/hci_conn.c:1147<br />
hci_abort_conn_sync+0x8c5/0xbb0 net/bluetooth/hci_sync.c:5689<br />
hci_cmd_sync_work+0x281/0x380 net/bluetooth/hci_sync.c:332<br />
process_one_work kernel/workqueue.c:3236 [inline]<br />
process_scheduled_works+0x77e/0x1040 kernel/workqueue.c:3319<br />
worker_thread+0xbee/0x1200 kernel/workqueue.c:3400<br />
kthread+0x3c7/0x870 kernel/kthread.c:463<br />
ret_from_fork+0x13a/0x1e0 arch/x86/kernel/process.c:148<br />
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245<br />
<br />
<br />
Allocated by task 31370:<br />
kasan_save_stack mm/kasan/common.c:47 [inline]<br />
kasan_save_track+0x30/0x70 mm/kasan/common.c:68<br />
poison_kmalloc_redzone mm/kasan/common.c:388 [inline]<br />
__kasan_kmalloc+0x82/0x90 mm/kasan/common.c:405<br />
kasan_kmalloc include/linux/kasan.h:260 [inline]<br />
__do_kmalloc_node mm/slub.c:4382 [inline]<br />
__kmalloc_noprof+0x22f/0x390 mm/slub.c:4394<br />
kmalloc_noprof include/linux/slab.h:909 [inline]<br />
sk_prot_alloc+0xae/0x220 net/core/sock.c:2239<br />
sk_alloc+0x34/0x5a0 net/core/sock.c:2295<br />
bt_sock_alloc+0x3c/0x330 net/bluetooth/af_bluetooth.c:151<br />
sco_sock_alloc net/bluetooth/sco.c:562 [inline]<br />
sco_sock_create+0xc0/0x350 net/bluetooth/sco.c:593<br />
bt_sock_create+0x161/0x3b0 net/bluetooth/af_bluetooth.c:135<br />
__sock_create+0x3ad/0x780 net/socket.c:1589<br />
sock_create net/socket.c:1647 [inline]<br />
__sys_socket_create net/socket.c:1684 [inline]<br />
__sys_socket+0xd5/0x330 net/socket.c:1731<br />
__do_sys_socket net/socket.c:1745 [inline]<br />
__se_sys_socket net/socket.c:1743 [inline]<br />
__x64_sys_socket+0x7a/0x90 net/socket.c:1743<br />
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]<br />
do_syscall_64+0xc7/0x240 arch/x86/entry/syscall_64.c:94<br />
entry_SYSCALL_64_after_hwframe+0x77/0x7f<br />
<br />
Freed by task 31374:<br />
kasan_save_stack mm/kasan/common.c:47 [inline]<br />
kasan_save_track+0x30/0x70 mm/kasan/common.c:68<br />
kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:576<br />
poison_slab_object mm/kasan/common.c:243 [inline]<br />
__kasan_slab_free+0x3d/0x50 mm/kasan/common.c:275<br />
kasan_slab_free include/linux/kasan.h:233 [inline]<br />
slab_free_hook mm/slub.c:2428 [inline]<br />
slab_free mm/slub.c:4701 [inline]<br />
kfree+0x199/0x3b0 mm/slub.c:4900<br />
sk_prot_free net/core/sock.c:2278 [inline]<br />
__sk_destruct+0x4aa/0x630 net/core/sock.c:2373<br />
sco_sock_release+0x2ad/0x300 net/bluetooth/sco.c:1333<br />
__sock_release net/socket.c:649 [inline]<br />
sock_close+0xb8/0x230 net/socket.c:1439<br />
__fput+0x3d1/0x9e0 fs/file_table.c:468<br />
task_work_run+0x206/0x2a0 kernel/task_work.c:227<br />
get_signal+0x1201/0x1410 kernel/signal.c:2807<br />
arch_do_signal_or_restart+0x34/0x740 arch/x86/kernel/signal.c:337<br />
exit_to_user_mode_loop+0x68/0xc0 kernel/entry/common.c:40<br />
exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline]<br />
s<br />
---truncated---
Impacto
Referencias a soluciones, herramientas e información
- https://git.kernel.org/stable/c/03371c0218189b185595b65a04dad60076ca9718
- https://git.kernel.org/stable/c/391f83547b7b2c63e4b572ab838e10a06cfa4425
- https://git.kernel.org/stable/c/57707135755bd78b1fe5acaebb054fba4739e14c
- https://git.kernel.org/stable/c/c17caff1062ca91ebac44bfd01d2fb3d99dc0e23
- https://git.kernel.org/stable/c/c419674cc74309ffaabc591e7200efb49a18fccd
- https://git.kernel.org/stable/c/d2850f037c2ae75882d68ae654d546ff5c0f678c
- https://git.kernel.org/stable/c/ecb9a843be4d6fd710d7026e359f21015a062572
- https://git.kernel.org/stable/c/ed10dddc7df2daaf2a4d98a972aac5183e738cc0



