Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0AEFE36C5A9 for ; Sat, 15 Aug 2026 06:25:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775110; cv=none; b=mIME/nqqDX1/aAV3fHYs7w9m7nRtjmDvLURlSBjzbaeAHbGtKWulaqnbXYtKoR+BjO3vinL7mBbWT+yutHiPl6vvufBEVloxwxjxo/2YVO5asrvdWXx8Ydpp5eTK0026hKso7zPrmI7pfH65Ug6HVHktlkEfbP8cweO0tGEBt0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775110; c=relaxed/simple; bh=x1hN4HSJ/yrMIL13Sg4c3Liye4o/yNOuZerBl5RSU8Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FPy/cAxwRyAVO4fPLjiO/ecRmjIvkUqxcMxMKFmhkC7h+QLLPx7xe3aeMgGiqCM1J5WnK/nIM21globobfyj/6TlKI/qWVREekah/Q4jzqB6eZOevEcYPdHF4+jTV2mkDbL8w4dd4BW16GsZxjtNfcoSB8hmdA0OzG60XwlOaNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VRFBMgS8; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="VRFBMgS8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0268C1F000E9; Sat, 15 Aug 2026 06:25:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775108; bh=b7vxbXsHbFjomQUHwmrJFC58ROP7EKklcJSW1zdRcFk=; h=From:To:Cc:Subject:Date:Reply-To; b=VRFBMgS8ermCfxZzg3owvCb44Btzt3mVN3P26rjRIhzHEIIERXzlWu6fz9HBjMbi3 vlNPwfQGDPdbdIiyuZYdjsWEyQjmmggGF301dkCKLqLKp5HcrU6gjj4EJEXWU+fPkl jraeHGb1tU5ARsiug4MNmzf4/v4euwkuI3t/C+UY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72336: Bluetooth: 6lowpan: hold L2CAP conn across debugfs control Date: Sat, 15 Aug 2026 15:06:55 +0900 Message-ID: <2026081509-CVE-2026-72336-696b@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=5922; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F1qTGGcD+lnmL+xMuG/AEIDVLSSbWobrwq5hRqwMIJo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDA+3BgRw/TO2l59beurJky1bq1XXnEjc/vtXt5XoP oFKM+/FHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR+ekMC6brx3Sp6PIp+8yd 0qx1cMVWUZZ/fgzzdFgrds7PPhE182kcR1sG30eDvR0iAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: Bluetooth: 6lowpan: hold L2CAP conn across debugfs control get_l2cap_conn() looks up an LE hci_conn under hdev protection, but then drops that protection before reading hcon->l2cap_data and before lowpan_control_write() later dereferences conn->hcon. A disconnect or device close can tear down the same L2CAP connection in that window. The buggy scenario involves two paths, with each column showing the order within that path: 6LoWPAN control write: HCI disconnect/device close: 1. get_l2cap_conn() finds hcon 1. hci_disconn_cfm() dispatches and hcon->l2cap_data. the L2CAP disconnect callback. 2. get_l2cap_conn() drops hdev 2. l2cap_conn_del() clears protection and returns conn. hcon->l2cap_data and drops the L2CAP connection reference. 3. lowpan_control_write() reads 3. hci_conn_del() removes and drops conn->hcon. the HCI connection. Take a reference to the L2CAP connection with l2cap_conn_hold_unless_zero() while hdev is still locked, and drop that reference after the debugfs command's last use of conn. This mirrors the existing L2CAP ACL receive-side handoff and keeps the connection dereferenceable after leaving hdev protection. Export the existing helper so the bluetooth_6lowpan module can use the same lifetime primitive. Validation reproduced this kernel report: BUG: KASAN: slab-use-after-free in lowpan_control_write+0x374/0x520 The buggy address belongs to the object at ffff888111b9d000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 0 bytes inside of freed 1024-byte region [ffff888111b9d000, ffff888111b9d400) Read of size 8 Call trace: dump_stack_lvl+0x66/0xa0 print_report+0xce/0x5f0 lowpan_control_write+0x374/0x520 (net/bluetooth/6lowpan.c:1131) srso_alias_return_thunk+0x5/0xfbef5 __virt_addr_valid+0x19f/0x330 kasan_report+0xe0/0x110 __debugfs_file_get+0xf7/0x400 full_proxy_write+0x9e/0xd0 vfs_write+0x1b0/0x810 ksys_write+0xd2/0x170 dnotify_flush+0x32/0x220 do_syscall_64+0x115/0x6a0 (arch/x86/entry/syscall_64.c:87) entry_SYSCALL_64_after_hwframe+0x77/0x7f Allocated by task stack: kasan_save_stack+0x33/0x60 kasan_save_track+0x17/0x60 __kasan_kmalloc+0xaa/0xb0 l2cap_conn_add+0x45/0x520 l2cap_chan_connect+0xac6/0xd90 l2cap_sock_connect+0x216/0x350 __sys_connect+0x101/0x130 __x64_sys_connect+0x40/0x50 do_syscall_64+0x115/0x6a0 (arch/x86/entry/syscall_64.c:87) entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task stack: kasan_save_stack+0x33/0x60 kasan_save_track+0x17/0x60 kasan_save_free_info+0x3b/0x60 __kasan_slab_free+0x5f/0x80 kfree+0x313/0x590 hci_conn_hash_flush+0xc0/0x140 hci_dev_close_sync+0x41a/0xb00 hci_dev_close+0x12f/0x160 hci_sock_ioctl+0x157/0x570 sock_do_ioctl+0xf7/0x210 sock_ioctl+0x32f/0x490 __x64_sys_ioctl+0xc7/0x110 do_syscall_64+0x115/0x6a0 (arch/x86/entry/syscall_64.c:87) entry_SYSCALL_64_after_hwframe+0x77/0x7f kasan_record_aux_stack+0xa7/0xc0 insert_work+0x32/0x100 __queue_work+0x262/0xa60 queue_work_on+0xad/0xb0 l2cap_connect_cfm+0x4ef/0x670 hci_le_remote_feat_complete_evt+0x247/0x430 hci_event_packet+0x360/0x6f0 hci_rx_work+0x2ae/0x7a0 process_one_work+0x4fd/0xbc0 worker_thread+0x2d8/0x570 kthread+0x1ad/0x1f0 ret_from_fork+0x3c9/0x540 ret_from_fork_asm+0x1a/0x30 The Linux kernel CVE team has assigned CVE-2026-72336 to this issue. Affected and fixed versions =========================== Issue introduced in 3.17 with commit 6b8d4a6a03144c5996f98db7f8256267b0d72a3a and fixed in 6.6.145 with commit ba1f1ef6522e63aa5dd29805b4390ea2ccadf05e Issue introduced in 3.17 with commit 6b8d4a6a03144c5996f98db7f8256267b0d72a3a and fixed in 6.12.97 with commit d2a8dc1f619c9e0e4126bee795c39ebddd2ec8ff Issue introduced in 3.17 with commit 6b8d4a6a03144c5996f98db7f8256267b0d72a3a and fixed in 6.18.40 with commit 23a83bac3356e7b211bcdcf581a31f7b536a2c24 Issue introduced in 3.17 with commit 6b8d4a6a03144c5996f98db7f8256267b0d72a3a and fixed in 7.1.5 with commit 32c48c7f6cc8c7888e46a8c81622154ccafda5d2 Issue introduced in 3.17 with commit 6b8d4a6a03144c5996f98db7f8256267b0d72a3a and fixed in 7.2-rc3 with commit 518aa9505fa10ea5662349e5d2efd8c9e32a820b Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-72336 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/bluetooth/6lowpan.c net/bluetooth/l2cap_core.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/ba1f1ef6522e63aa5dd29805b4390ea2ccadf05e https://git.kernel.org/stable/c/d2a8dc1f619c9e0e4126bee795c39ebddd2ec8ff https://git.kernel.org/stable/c/23a83bac3356e7b211bcdcf581a31f7b536a2c24 https://git.kernel.org/stable/c/32c48c7f6cc8c7888e46a8c81622154ccafda5d2 https://git.kernel.org/stable/c/518aa9505fa10ea5662349e5d2efd8c9e32a820b