CVE
CVE-2025-39860
CNA 原文 · 原文(英文)
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: Fix use-after-free in l2cap_sock_cleanup_listen() syzbot reported the splat below without a repro. In the splat, a single thread calling bt_accept_dequeue() freed sk and touched it after that. The root cause would be the racy l2cap_sock_cleanup_listen() call added by the cited commit. bt_accept_dequeue() is called under lock_sock() except for l2cap_sock_release(). Two threads could see the same socket during the list iteration in bt_accept_dequeue(): CPU1 CPU2 (close()) ---- ---- sock_hold(sk) sock_hold(sk); lock_sock(sk) <-- block close() sock_put(sk) bt_accept_unlink(sk) sock_put(sk) <-- refcnt by bt_accept_enqueue() release_sock(sk) lock_sock(sk) sock_put(sk) bt_accept_unlink(sk) sock_put(sk) <-- last refcnt bt_accept_unlink(sk) <-- UAF Depending on the timing, the other thread could show up in the "Freed by task" part. Let's call l2cap_sock_cleanup_listen() under lock_sock() in l2cap_sock_release(). [0]: BUG: KASAN: slab-use-after-free in debug_spin_lock_before kernel/locking/spinlock_debug.c:86 [inline] BUG: KASAN: slab-use-after-free in do_raw_spin_lock+0x26f/0x2b0 kernel/locking/spinlock_debug.c:115 Read of size 4 at addr ffff88803b7eb1c4 by task syz.5.3276/16995 CPU: 3 UID: 0 PID: 16995 Comm: syz.5.3276 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: <TASK> __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 debug_spin_lock_before…
受影响版本
- 6.17-rc4仅此版本
- 6.17-rc3仅此版本
- 6.17-rc2仅此版本
- 6.17-rc1仅此版本
- ≥ 6.13, < 6.16.6修复版本 6.16.6
- ≥ 6.7, < 6.12.46修复版本 6.12.46
- ≥ 6.4.10, < 6.6.105修复版本 6.6.105
- ≥ 6.1.45, < 6.1.151修复版本 6.1.151
- ≥ 5.15.126, < 5.15.192修复版本 5.15.192
- ≥ 5.10.190, < 5.10.243修复版本 5.10.243
- ≥ 5.4.253, < 5.4.299修复版本 5.4.299
- ≥ 4.19.291, < 4.20修复版本 4.20
- ≥ 4.14.322, < 4.15修复版本 4.15
发行版软件包(Debian、Ubuntu、Red Hat 等)会回移补丁而不改上游版本号,请同时查看所用发行版的安全公告。
公告与补丁
- git.kernel.org/stable/c/2ca99fc3512a8074de20ee52a87b492dfcc41a4d · Patch
- git.kernel.org/stable/c/306b0991413b482dbf5585b423022123bb505966 · Patch
- git.kernel.org/stable/c/3dff390f55ccd9ce12e91233849769b5312180c2 · Patch
- git.kernel.org/stable/c/47f6090bcf75c369695d21c3f179db8a56bbbd49 · Patch
- git.kernel.org/stable/c/6077d16b5c0f65d571eee709de2f0541fb5ef0ca · Patch
- git.kernel.org/stable/c/83e1d9892ef51785cf0760b7681436760dda435a · Patch
- git.kernel.org/stable/c/862c628108562d8c7a516a900034823b381d3cba · Patch
- git.kernel.org/stable/c/964cbb198f9c46c2b2358cd1faffc04c1e8248cf · Patch
- lists.debian.org/debian-lts-announce/2025/10/msg00007.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2025/10/msg00008.html · Third Party Advisory
数据来源:NVD(公有领域)、CISA KEV(CC0)、FIRST EPSS、OSV.dev / GitHub Advisory Database(CC-BY 4.0) · 本库只列受影响版本与修复版本,不托管、不链接任何利用代码。