Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6B075194AD7 for ; Sat, 6 Dec 2025 21:52:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765057970; cv=none; b=JqCc/ezc45AeRdIGTOyiuQ/DotNVVBADSHL1BkMlBS45UPNfUCsyUkx/B4rIvG9pY2T165Fp78NsRqJOnm1S3/9ro1itUEcBMwNgaJ8LinuXw8vHCRPb5a3dQoDFOhROX4ntBwOcn4nimK22m7/q96gTVn/1zhYPjyBbHfrLADw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765057970; c=relaxed/simple; bh=kH5vatXHcUwBxcnns5SegEyRqXZh4kmcRX37Fam1/kM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jKB7/hQnsT3MB0bP8GKCCFpdazatV03Ky7T9ZgON/lyZz3NBMhcZaPpRlFygZNXj0XqdZDrwkS40l+ASjO0M5Mw/8d9615M9Jz1ZH00RjvO6/ToRbZZOkyidkXhZKIwi+ptdW82axCToUoqMzs6eDK1SU5GsRGrCaO4fWR53yVk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ySRPIrgZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ySRPIrgZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94E3AC4CEF5; Sat, 6 Dec 2025 21:52:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765057970; bh=kH5vatXHcUwBxcnns5SegEyRqXZh4kmcRX37Fam1/kM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ySRPIrgZKlO2guQ0mMUEOuOZQTOAJVG3MKkGGr/X4l2nyWyU4dR/7CTkUs6ThM8R1 voNARL9ud93hEaosfR1pR3Rh44zh1u5yt86osHgA60naozmCt0mCPMHrYWKu41GSbt Sge3rwovO+cULRXhC1pZZoZq9UipiTpuPTfBLNsk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40283: Bluetooth: btusb: reorder cleanup in btusb_disconnect to avoid UAF Date: Sun, 7 Dec 2025 06:52:30 +0900 Message-ID: <2025120718-CVE-2025-40283-0706@gregkh> X-Mailer: git-send-email 2.52.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=3480; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gOC2I64BU8HVErJ+5EYNw50Wdv2apRwt39LSoa1Tw4I=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkmSyeVz7d2eHBOICIuZMKOyyLJhomiERK7sza8ie+Y0 BNytkGlI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSMp1hvncxZ92kvd6TWvaG Fpx8v1pBKoD7O8OC7auYm7UdcrZ3M0/oZ34S+eCMkNg0AA== 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: btusb: reorder cleanup in btusb_disconnect to avoid UAF There is a KASAN: slab-use-after-free read in btusb_disconnect(). Calling "usb_driver_release_interface(&btusb_driver, data->intf)" will free the btusb data associated with the interface. The same data is then used later in the function, hence the UAF. Fix by moving the accesses to btusb data to before the data is free'd. The Linux kernel CVE team has assigned CVE-2025-40283 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit fd913ef7ce619467c6b0644af48ba1fec499c623 and fixed in 5.4.302 with commit 297dbf87989e09af98f81f2bcb938041785557e8 Issue introduced in 4.11 with commit fd913ef7ce619467c6b0644af48ba1fec499c623 and fixed in 5.10.247 with commit f858f004bc343a7ae9f2533bbb2a3ab27428532f Issue introduced in 4.11 with commit fd913ef7ce619467c6b0644af48ba1fec499c623 and fixed in 5.15.197 with commit 7a6d1e740220ff9dfcb6a8c994d6ba49e76db198 Issue introduced in 4.11 with commit fd913ef7ce619467c6b0644af48ba1fec499c623 and fixed in 6.1.159 with commit 5dc00065a0496c36694afe11e52a5bc64524a9b8 Issue introduced in 4.11 with commit fd913ef7ce619467c6b0644af48ba1fec499c623 and fixed in 6.6.117 with commit 1c28c1e1522c773a94e26950ffb145e88cd9834b Issue introduced in 4.11 with commit fd913ef7ce619467c6b0644af48ba1fec499c623 and fixed in 6.12.59 with commit 95b9b98c93b1c0916a3d4cf4540b7f5d69145a0d Issue introduced in 4.11 with commit fd913ef7ce619467c6b0644af48ba1fec499c623 and fixed in 6.17.9 with commit a2610ecd9fd5708be8997ca8f033e4200c0bb6af Issue introduced in 4.11 with commit fd913ef7ce619467c6b0644af48ba1fec499c623 and fixed in 6.18 with commit 23d22f2f71768034d6ef86168213843fc49bf550 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-2025-40283 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: drivers/bluetooth/btusb.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/297dbf87989e09af98f81f2bcb938041785557e8 https://git.kernel.org/stable/c/f858f004bc343a7ae9f2533bbb2a3ab27428532f https://git.kernel.org/stable/c/7a6d1e740220ff9dfcb6a8c994d6ba49e76db198 https://git.kernel.org/stable/c/5dc00065a0496c36694afe11e52a5bc64524a9b8 https://git.kernel.org/stable/c/1c28c1e1522c773a94e26950ffb145e88cd9834b https://git.kernel.org/stable/c/95b9b98c93b1c0916a3d4cf4540b7f5d69145a0d https://git.kernel.org/stable/c/a2610ecd9fd5708be8997ca8f033e4200c0bb6af https://git.kernel.org/stable/c/23d22f2f71768034d6ef86168213843fc49bf550