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 274CB3D3CE5 for ; Fri, 28 Aug 2026 06:54:55 +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=1787900096; cv=none; b=rpQVhFMVgp8KBdbOd4mPl1tWET27ZF47PudTbJ+kK4XIMZ6t7SqFORvMF7B4NP8CL5PVJXkARmutH2Jj3f1z2F3WPK+Rz/IuT2Du+bNxpwwgXytzpCh5mcgdz1geL2zv92xAP+pwTlQ6KIF6rxjqXgGpe9fwaHZEQBqvrjmrifo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787900096; c=relaxed/simple; bh=UKgGigzgOqEWGRmC7bigATDqUEji0KFXL3Jle+Ak22E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IwUf8LZO1scz39m8wqiEPbpxz5T0fM/hAPnnYREbKP/utw1gmmoA7eIVSFdfiQolZcYPPEqzqokHEiFyi3m4qW51DV3Y0mfJ/FgqhEFmfkxK4nDiZbKR643tDvHLf8tV6WrRU5yqIpi1UGVvzIcwGD6BbYbG3ncV1o8pqv0jy98= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MK4VCaNr; 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="MK4VCaNr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 702861F000E9; Fri, 28 Aug 2026 06:54:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787900095; bh=mN9VGlEJjdGyMVHLa9KhcM5xa0q3ioLpTbAt1GSBS/o=; h=From:To:Cc:Subject:Date:Reply-To; b=MK4VCaNrb2rMj1oVhcslb3tiZy11AQZ/0DwcCW9Y1AC+F8kSoXARJb2cOrTdZPIva znynX168Fmw/K/anaw0qHvs8krZOrA/+caenmpCTe3ORmThIhz1vXExOkbfUP4wnpg mCnzFZH5CgTZmXfibDo5S3rkTXCDWtup0h4gtjbA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80683: Bluetooth: SCO: give the socket its own sco_conn reference Date: Fri, 28 Aug 2026 08:53:06 +0200 Message-ID: <2026082802-CVE-2026-80683-7cbe@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=4710; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/ufykj79CcUBfVzj6qVzpP221LqsPUQRcoAqIJx/FZ4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkTDfy+22+X35TjeaTp2pPYjptT03kO6Kidct4hXO3r1 e14i0W0I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbCdpJhfsadwqW13D93aNz9 dyB18tYnGV8UJjLMs+wt2lz81vgyn53Tmaff5usuYnZgAgA= 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: SCO: give the socket its own sco_conn reference sco_conn_del() drops a reference it does not own. It takes one transient reference via sco_conn_hold_unless_zero() and releases it with the sco_conn_put() that follows sco_sock_hold(); the additional put in the !sk branch releases a second one: conn = sco_conn_hold_unless_zero(conn); ... sk = sco_sock_hold(conn); sco_conn_unlock(conn); sco_conn_put(conn); if (!sk) { sco_conn_put(conn); return; } When close() races the controller's Disconnection Complete, sco_chan_del() clears conn->sk and drops the socket's reference while sco_conn_del() is running. sco_conn_del() then sees sk == NULL, its own put drops the count to zero and frees the conn, and the second put writes to the freed kref: BUG: KASAN: slab-use-after-free in sco_conn_put.part.0+0x1a/0x190 Write of size 4 at addr ffff8881099dec74 by task kworker/u17:3/413 Workqueue: hci1 hci_rx_work Call Trace: sco_conn_put.part.0+0x1a/0x190 hci_disconn_complete_evt+0x1ee/0x3e0 hci_event_packet+0x54a/0x650 hci_rx_work+0x321/0x3d0 Allocated by task 413: sco_conn_add+0x72/0x1a0 sco_connect_cfm+0x88/0x670 Freed by task 413: sco_conn_del.isra.0+0x3f/0xf0 hci_disconn_complete_evt+0x1ee/0x3e0 refcount_t: underflow; use-after-free. The root cause is that the socket stores the connection without holding a reference of its own. __sco_chan_add() does: sco_pi(sk)->conn = conn; so the socket borrows whatever reference its caller happened to hold, and the callers paper over that with ad-hoc holds and puts. Give the socket a counted reference instead: __sco_chan_add() takes one and it is released together with the channel (sco_chan_del()) and in sco_sock_destruct(). With the socket holding its own reference, sco_conn_del() no longer needs the extra put and the redundant hold in sco_conn_ready() goes away. Making the socket own its reference means the connection is now actually freed on the error paths of sco_connect() where it used to leak, which in turn runs sco_conn_free() and its hci_conn_drop(conn->hcon). To keep the hci_conn accounting balanced, make that ownership explicit as well: sco_conn_add() consumes one hci_conn reference and the sco_conn owns it for its lifetime. sco_connect() hands over the reference returned by hci_connect_sco() and no longer drops it on the error paths; sco_connect_cfm(), which is not given a reference, takes one with hci_conn_hold() before handing it to sco_conn_add() (and drops it again if the allocation fails); and the explicit hci_conn_hold() in sco_conn_ready() is removed. Every reference then has a single, clear owner. The Linux kernel CVE team has assigned CVE-2026-80683 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit e6720779ae612a14ac4ba7fe4fd5b27d900d932c and fixed in 6.18.44 with commit a33bc07b4730b6cd5681ac77d18ae0de3e739690 Issue introduced in 6.13 with commit e6720779ae612a14ac4ba7fe4fd5b27d900d932c and fixed in 7.1.8 with commit 8fe627192fa5da7157f9a48608f13c04b6373e43 Issue introduced in 6.13 with commit e6720779ae612a14ac4ba7fe4fd5b27d900d932c and fixed in 7.2 with commit abd93c85c8667add738ee82aeab95dd9fc8265a2 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-80683 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/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/a33bc07b4730b6cd5681ac77d18ae0de3e739690 https://git.kernel.org/stable/c/8fe627192fa5da7157f9a48608f13c04b6373e43 https://git.kernel.org/stable/c/abd93c85c8667add738ee82aeab95dd9fc8265a2