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 9F18F2116F6 for ; Thu, 6 Mar 2025 16:04:53 +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=1741277094; cv=none; b=dw7RecGwNbz2AzBuuV1LDeEyPLl9KlQehRutX6Q04n0xcPvnRVaA8if5YF7QQmpUhl7TXFXySDtdJco9ntcoKr6ZrM8SKjT8u8qbhyj92EfWLQCJmXiz3a013DJ/dRhYL/IQiOFKIZBxKPe5uus9UiZEHU6rZYX3syRyEUuBcR4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741277094; c=relaxed/simple; bh=jBynRiEhNghbEbUHwip81KPVXfg40zfXZcniIoEMZ8A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SAiLd9gpyBnV7XLXtMPnnI9z/YdToE5KmGGOR454gduGGr4VAZ/912yzfjWBVXOz3FvkeCeog8FzKb7DU7JLY+aPz3tvQMG03Ss07J65ZpB4FHERS7t9OPSOkmDieAD0XYPWjg8jShqHSzy2Phfa4JBaHSvzAZM6a6WYWrsvOOY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QzqwEBmn; 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="QzqwEBmn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8648AC4CEE0; Thu, 6 Mar 2025 16:04:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741277093; bh=jBynRiEhNghbEbUHwip81KPVXfg40zfXZcniIoEMZ8A=; h=From:To:Cc:Subject:Date:Reply-to:From; b=QzqwEBmnJWZtEGI8oDXJslQ+zcNjsrZ/cEmlAPXMupt+kwCJL6ICWSb4WW9SaqgJf rgI1lGwlrceM2HNeK4yEKAzFhMoP+xPDDlv9ViA/uo/8xgcP5FTphOxBRUsR8h8pW0 RlygUJcYnJNiQkNq3lCaUZKaF8PS9edM9EulQOug= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21827: Bluetooth: btusb: mediatek: Add locks for usb_driver_claim_interface() Date: Thu, 6 Mar 2025 17:04:32 +0100 Message-ID: <2025030630-CVE-2025-21827-6735@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3001; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jBynRiEhNghbEbUHwip81KPVXfg40zfXZcniIoEMZ8A=; b=owGbwMvMwCRo6H6F97bub03G02pJDOknj/dx/3wmwMLrP10i98Xm+W9eWb3/nnLYt+aFJl9J4 s+ydIb2jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI0q0MC670m1g7hGkmSl0M PTBRyuTjoqXeCgwLZs7wr9Gft7H46a7pSY+z30n7cIVWAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btusb: mediatek: Add locks for usb_driver_claim_interface() The documentation for usb_driver_claim_interface() says that "the device lock" is needed when the function is called from places other than probe(). This appears to be the lock for the USB interface device. The Mediatek btusb code gets called via this path: Workqueue: hci0 hci_power_on [bluetooth] Call trace: usb_driver_claim_interface btusb_mtk_claim_iso_intf btusb_mtk_setup hci_dev_open_sync hci_power_on process_scheduled_works worker_thread kthread With the above call trace the device lock hasn't been claimed. Claim it. Without this fix, we'd sometimes see the error "Failed to claim iso interface". Sometimes we'd even see worse errors, like a NULL pointer dereference (where `intf->dev.driver` was NULL) with a trace like: Call trace: usb_suspend_both usb_runtime_suspend __rpm_callback rpm_suspend pm_runtime_work process_scheduled_works Both errors appear to be fixed with the proper locking. The Linux kernel CVE team has assigned CVE-2025-21827 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit ceac1cb0259de682d78f5c784ef8e0b13022e9d9 and fixed in 6.12.13 with commit 930e1790b99e5839e1af69d2f7fd808f1fba2df9 Issue introduced in 6.11 with commit ceac1cb0259de682d78f5c784ef8e0b13022e9d9 and fixed in 6.13.2 with commit 4194766ec8756f4f654d595ae49962acbac49490 Issue introduced in 6.11 with commit ceac1cb0259de682d78f5c784ef8e0b13022e9d9 and fixed in 6.14-rc1 with commit e9087e828827e5a5c85e124ce77503f2b81c3491 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-21827 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/930e1790b99e5839e1af69d2f7fd808f1fba2df9 https://git.kernel.org/stable/c/4194766ec8756f4f654d595ae49962acbac49490 https://git.kernel.org/stable/c/e9087e828827e5a5c85e124ce77503f2b81c3491