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 BDFF33F23CF for ; Thu, 2 Jul 2026 13:43:29 +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=1782999810; cv=none; b=kA+JVyi2ZyHsdaV+LNwjkBkBJpIDW4O+//4lpv0nM0MQtuOfiqSlJE5RI3lWz3VnS95Rl97W5b8MEnUUSrw+dpuaKwkY65w7RbjZSEyMZa/IwZeO48BbkqUQXj3FtnVTrJJtmn3jgYQg1Y7yR+rKB49wxWp6TjcEfOiGxGl/Aic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782999810; c=relaxed/simple; bh=zs/N9vZ6N3wuYrBtYYcb2yjwpfbqi/xM5Ap5oRG92cY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EYdHFuNoINaW2DG1Mzu4zkMJNcAlRCs+76Wxw/cEH/MyCrTqdtxwqJMcuOkxMm6Xnpey+8TngHJyyr9hMSthIawF+dnbVm5/xGvNxS9FWKc/q6SRDNJX1TES5gjvrocKedFF2nCINCwlmzRdhcD0OufYigofbpC3l/rusVo056M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=bXgeI9ZD; 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="bXgeI9ZD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAA231F00A3A; Thu, 2 Jul 2026 13:43:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782999809; bh=pI940SZreGnbAEVLPvd6cio8VlEiyv90CDSTBum/YS8=; h=From:To:Cc:Subject:Date:Reply-To; b=bXgeI9ZDQvGmOgSyMvdvf//Sqo7a+Uy5DnMhGOIGYscz7GO4kn86zFeGPcSPgqNLZ wLo53CoF87d8FlWO2VUkEr4pDA4hhypweU0qjEVDDjaKttPWVpqLdjdi0xl9+ttr8H CTNRjyDK9pXuAO3zWCi032xCSck3fp8AtoZrZm6M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53357: Bluetooth: fix UAF in l2cap_sock_cleanup_listen() vs l2cap_conn_del() Date: Thu, 2 Jul 2026 15:43:35 +0200 Message-ID: <2026070234-CVE-2026-53357-18f1@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=5109; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CeTM2E66Ohfo4YT7Ks+WW/sSq08tPZ59SY50tCXLRdQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlu2Wxmm0PMbLOumIZ9/9fwVupgrvKJGRse7NrcMjcoL fTE5fb7HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRiHcMC1ZOev220/rR4zmM t1hbfkxZyPhW7iTD/Eof7fxg8Z+Rsusajv2RYs+fc6X4JAA= 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: fix UAF in l2cap_sock_cleanup_listen() vs l2cap_conn_del() bt_accept_dequeue() unlinks a not-yet-accepted child from the parent accept queue and release_sock()s it before returning, so the returned sk has no caller reference and is unlocked. l2cap_sock_cleanup_listen() walks these children on listening-socket close. A concurrent HCI disconnect drives hci_rx_work -> l2cap_conn_del() which runs l2cap_chan_del() + l2cap_sock_kill() and frees the child sk and its l2cap_chan; cleanup_listen() then uses both: BUG: KASAN: slab-use-after-free in l2cap_sock_kill l2cap_sock_kill / l2cap_sock_cleanup_listen / __x64_sys_close Freed by: l2cap_conn_del -> l2cap_sock_close_cb -> l2cap_sock_kill This is distinct from the two fixes already in this area: commit e83f5e24da741 ("Bluetooth: serialize accept_q access") serialises the accept_q list/poll and takes temporary refs inside bt_accept_dequeue(), and CVE-2025-39860 serialises the userspace close()/accept() race by calling cleanup_listen() under lock_sock() in l2cap_sock_release(). Neither covers l2cap_conn_del() running from hci_rx_work, so this UAF still reproduces on current bluetooth/master. Take the reference at the source: bt_accept_dequeue() does sock_hold() while sk is still locked, before release_sock(); callers sock_put(). cleanup_listen() pins the chan with l2cap_chan_hold_unless_zero() under a brief child sk lock (serialising vs l2cap_sock_teardown_cb()), drops it before l2cap_chan_lock(), and skips a duplicate l2cap_sock_kill() on SOCK_DEAD. conn->lock is not taken here: cleanup_listen() runs under the parent sk lock and that would invert conn->lock -> chan->lock -> sk_lock (lockdep). KASAN/SMP: an unprivileged listen/close vs HCI-disconnect race produced 12 use-after-free reports per run before this change; 0, and no lockdep report, over 1600+ raced iterations after it on bluetooth/master. The Linux kernel CVE team has assigned CVE-2026-53357 to this issue. Affected and fixed versions =========================== Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 5.10.259 with commit 751de6ec671fe75ad9cf65a0638d2a06b6a5984d Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 5.15.210 with commit 407217734835d21d4e0105ebf347860dc1806f88 Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.1.175 with commit 7eebd4c2c86f573af87ff165d08a83432eb0b919 Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.6.142 with commit 5d86d2f1b4d9a508c441d3e45277ae1a73cfed57 Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.12.92 with commit 87c543e2f78d0871f271df92dab98901bbd5b6f5 Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 6.18.34 with commit added1213395071470a900cc845a042fb51882a6 Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 7.0.11 with commit a5ca86a6097a8b030ca3226cd300b17ed330f966 Issue introduced in 5.7 with commit 15f02b91056253e8cdc592888f431da0731337b8 and fixed in 7.1 with commit ab1513597c6cf17cd1ad2a21e3b045421b48e022 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-53357 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/af_bluetooth.c net/bluetooth/iso.c net/bluetooth/l2cap_sock.c net/bluetooth/rfcomm/sock.c net/bluetooth/sco.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/751de6ec671fe75ad9cf65a0638d2a06b6a5984d https://git.kernel.org/stable/c/407217734835d21d4e0105ebf347860dc1806f88 https://git.kernel.org/stable/c/7eebd4c2c86f573af87ff165d08a83432eb0b919 https://git.kernel.org/stable/c/5d86d2f1b4d9a508c441d3e45277ae1a73cfed57 https://git.kernel.org/stable/c/87c543e2f78d0871f271df92dab98901bbd5b6f5 https://git.kernel.org/stable/c/added1213395071470a900cc845a042fb51882a6 https://git.kernel.org/stable/c/a5ca86a6097a8b030ca3226cd300b17ed330f966 https://git.kernel.org/stable/c/ab1513597c6cf17cd1ad2a21e3b045421b48e022