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 9DD2C34D4DF for ; Tue, 16 Dec 2025 15:07:17 +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=1765897637; cv=none; b=N642ZTtNd/J51HSn9wHfs7AvY+xThIRZsEsxWgYhYZd0q43WQwVuUuMuZAjanWQvrXjxOzBGpQe33W+RDFDmlaOzrj4aPlPWss3m+GupuemHgoId4XAgXlGetKeQo6Y4ZhtbnzajzGCcWd+s0s+TkbAr8JZw2Eja3AryUKuY900= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765897637; c=relaxed/simple; bh=qfS5ichP0ChT0TmdCxN3fIXl55WNA2EHyzL+AEuXCeM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Wa4RxhaPu7fNoVv+L5qvv8QE3+6khs0jXhy6JMFLcv/bGsTzKrATsRuUtE9+WxgUwR1r8x34YF+QCYStzdVuh3ggQIPucIu7hS5+TGhnFltSZBCL5AqcHul4z6kfuboUTbVHitxxgjw0zcIL99gdZ9cnNwntUJWoJ395ASk/Gjk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SbR7O0va; 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="SbR7O0va" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE2D7C4CEF1; Tue, 16 Dec 2025 15:07:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765897637; bh=qfS5ichP0ChT0TmdCxN3fIXl55WNA2EHyzL+AEuXCeM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=SbR7O0vaUglTkE/ZzqF48sjX+EXWCogWgFcHXZzEXNdquJCDSOt9Jl5fUA885Utkp MxAuTnaaBG5nInmsA2W8uYX/b2sWym58VzwlZixbBNR7Te8W8p6RWtwB7lH+l2CY7a vO1xahr43g7M26GnjllMb8Gp4/m+doQsm9JJYdW0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68298: Bluetooth: btusb: mediatek: Avoid btusb_mtk_claim_iso_intf() NULL deref Date: Tue, 16 Dec 2025 16:06:52 +0100 Message-ID: <2025121642-CVE-2025-68298-40ed@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=3025; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gvDMzMQXenl2v/8FJtNyo5j/mhV+e02JZeB3Mzv42ZM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOpU3XzD9NrWStv7f4zfOJpz4sEU66eKDzp2yDzPe9q wyOPzf26IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJvBFjWLB8udC7lxav/35d pWBWryL0dar6xRyGBaf/fylZ9ux6q/sSk9rOM+L229/unggA 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: mediatek: Avoid btusb_mtk_claim_iso_intf() NULL deref In btusb_mtk_setup(), we set `btmtk_data->isopkt_intf` to: usb_ifnum_to_if(data->udev, MTK_ISO_IFNUM) That function can return NULL in some cases. Even when it returns NULL, though, we still go on to call btusb_mtk_claim_iso_intf(). As of commit e9087e828827 ("Bluetooth: btusb: mediatek: Add locks for usb_driver_claim_interface()"), calling btusb_mtk_claim_iso_intf() when `btmtk_data->isopkt_intf` is NULL will cause a crash because we'll end up passing a bad pointer to device_lock(). Prior to that commit we'd pass the NULL pointer directly to usb_driver_claim_interface() which would detect it and return an error, which was handled. Resolve the crash in btusb_mtk_claim_iso_intf() by adding a NULL check at the start of the function. This makes the code handle a NULL `btmtk_data->isopkt_intf` the same way it did before the problematic commit (just with a slight change to the error message printed). The Linux kernel CVE team has assigned CVE-2025-68298 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.13 with commit 930e1790b99e5839e1af69d2f7fd808f1fba2df9 and fixed in 6.12.61 with commit 2fa09fe98ca3b114d66285f65f7e108fea131815 Issue introduced in 6.14 with commit e9087e828827e5a5c85e124ce77503f2b81c3491 and fixed in 6.17.11 with commit c3b990e0b23068da65f0004cd38ee31f43f36460 Issue introduced in 6.14 with commit e9087e828827e5a5c85e124ce77503f2b81c3491 and fixed in 6.18 with commit c884a0b27b4586e607431d86a1aa0bb4fb39169c Issue introduced in 6.13.2 with commit 4194766ec8756f4f654d595ae49962acbac49490 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-68298 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/2fa09fe98ca3b114d66285f65f7e108fea131815 https://git.kernel.org/stable/c/c3b990e0b23068da65f0004cd38ee31f43f36460 https://git.kernel.org/stable/c/c884a0b27b4586e607431d86a1aa0bb4fb39169c