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 D061237DAC2 for ; Sun, 18 Oct 2026 15:35:45 +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=1792337748; cv=none; b=WxQHhzU3kH/zoBSONwb9dsffTKT3Lkc2J+RTEQ7aSiWlJO2ToSb/CQowkSWhM8TKwcsbaV//z5I1oCCN5TsF6Vhb/ouJFMVspL8Ob6u7sQZ8/w+wZzUWtbAS7AeoLty8CqgIzFHJq+d6+rzjZUjjZ2WxQKIm+byHiVwvi3GrxLY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337748; c=relaxed/simple; bh=kIL0uMCjKIYGc6obQdeKlcGJhmJ3f888lLExogpD5a8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sPl/qvBnm/n5UVlJLfPhvZNYu3M+KJakuIUvZQMVXcU/bumVGxRZjps/1sh6M+IYzieklYpH3u2QNwDLPFyewVr2kjKHIfauEPRu7LzB6tmuM3ovcGPfSBQIoTVRS4plrrNyUE5AP4akim++BIITS3dWA31AOrfnNFKzJDDlBF4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rpiS6+gM; 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="rpiS6+gM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A14701F000C6; Sun, 18 Oct 2026 15:35:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337745; bh=atCQqruICpM1Z7C4TQxhXAND0jaCPrIQ70QvkhMUgZ4=; h=From:To:Cc:Subject:Date:Reply-To; b=rpiS6+gMHbYFbIY1ZJzICTpIHRtgTh8OozdgKbJS4et1+Hoju/dQtKLdZPT1RRdgw X65ir2lYcEFeUt2vb6BcbDpNMe+KDc0/NnNx5pr9qaKwpfhAd4a00kyqSdWD7IQ9eU cvo8BBCvVI+kUzGBMMowGuZU9vVqFxeCLpTK2gKg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98632: Bluetooth: mgmt: Dequeue pending mesh_send_sync entries on cancel Date: Sun, 18 Oct 2026 17:18:16 +0200 Message-ID: <2026101844-CVE-2026-98632-9c7f@gregkh> X-Mailer: git-send-email 2.56.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=3829; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7D+hEAW9Xd93B059dRTwQPoRZmydgdzYzZ4gNe5dWg8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHi1o8t8uesVNzij885xnL/3Pdpz16xF5tp5NzyMr6 e+ZR1fUO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiB2cyzLPg2XmHeTXD9gzG iKclNc7/GfUb4hkWXNX2/62z0ir0UMbFnqsJh2UUU3deAAA= 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: mgmt: Dequeue pending mesh_send_sync entries on cancel In send_cancel(), pending mesh_tx objects are removed from the hdev->mesh_pending list and freed via mesh_send_complete(). However, if a mesh transmission was already queued onto hdev->cmd_sync_work_list via mesh_next(), the queued entry retains a raw pointer to mesh_tx. When hci_cmd_sync_work later processes the entry, it attempts to execute mesh_send_sync and its destroy callback mesh_send_start_complete using the already freed mesh_tx pointer, leading to a use-after-free. Fix this by invoking hci_cmd_sync_dequeue() for mesh_send_sync on the target mesh_tx before completing it. If the entry is found and dequeued, its destroy callback will complete and free the object; otherwise, mesh_send_complete() is called directly. Additionally, ensure the transmission queue advances after cancellation or errors. In mesh_send_start_complete(), call mesh_next() on error unless err is -ECANCELED, because hci_cmd_sync_dequeue() holds hdev->cmd_sync_work_lock and calling mesh_next() synchronously would deadlock. Instead, advance the queue in send_cancel() once the lock is released and if no transmission is in progress. The Linux kernel CVE team has assigned CVE-2026-98632 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit b338d91703fae6f6afd67f3f75caa3b8f36ddef3 and fixed in 6.1.189 with commit f84e52829021d00bca8e067302f597c71af1f71a Issue introduced in 6.1 with commit b338d91703fae6f6afd67f3f75caa3b8f36ddef3 and fixed in 6.6.158 with commit 718a8ffa180d469f99ad4f746f00cafd39456415 Issue introduced in 6.1 with commit b338d91703fae6f6afd67f3f75caa3b8f36ddef3 and fixed in 6.12.112 with commit 084be90948632a5a358821e687b11a14445aae76 Issue introduced in 6.1 with commit b338d91703fae6f6afd67f3f75caa3b8f36ddef3 and fixed in 6.18.55 with commit 2189a219397d8e73808a67c4aade837b635705da Issue introduced in 6.1 with commit b338d91703fae6f6afd67f3f75caa3b8f36ddef3 and fixed in 7.2.9 with commit 03ced4687fb79286be7fdee0fc58d2c74de3e7bb Issue introduced in 6.1 with commit b338d91703fae6f6afd67f3f75caa3b8f36ddef3 and fixed in 7.3-rc5 with commit 71af682ba4692c2ed9ace4c3d4ca462ae368c029 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-98632 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/mgmt.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/f84e52829021d00bca8e067302f597c71af1f71a https://git.kernel.org/stable/c/718a8ffa180d469f99ad4f746f00cafd39456415 https://git.kernel.org/stable/c/084be90948632a5a358821e687b11a14445aae76 https://git.kernel.org/stable/c/2189a219397d8e73808a67c4aade837b635705da https://git.kernel.org/stable/c/03ced4687fb79286be7fdee0fc58d2c74de3e7bb https://git.kernel.org/stable/c/71af682ba4692c2ed9ace4c3d4ca462ae368c029