{"id":"CVE-2026-98632","aliases":["CVE-2026-98632"],"related":[],"kind":"vulnerability","state":"published","title":"Bluetooth: mgmt: Dequeue pending mesh_send_sync entries on cancel","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: mgmt: Dequeue pending mesh_send_sync entries on cancel\n\nIn send_cancel(), pending mesh_tx objects are removed from the\nhdev->mesh_pending list and freed via mesh_send_complete().  However, if\na mesh transmission was already queued onto hdev->cmd_sync_work_list via\nmesh_next(), the queued entry retains a raw pointer to mesh_tx.\n\nWhen hci_cmd_sync_work later processes the entry, it attempts to execute\nmesh_send_sync and its destroy callback mesh_send_start_complete using\nthe already freed mesh_tx pointer, leading to a use-after-free.\n\nFix this by invoking hci_cmd_sync_dequeue() for mesh_send_sync on the\ntarget mesh_tx before completing it.  If the entry is found and dequeued,\nits destroy callback will complete and free the object; otherwise,\nmesh_send_complete() is called directly.\n\nAdditionally, ensure the transmission queue advances after cancellation\nor errors.  In mesh_send_start_complete(), call mesh_next() on error\nunless err is -ECANCELED, because hci_cmd_sync_dequeue() holds\nhdev->cmd_sync_work_lock and calling mesh_next() synchronously would\ndeadlock.  Instead, advance the queue in send_cancel() once the lock is\nreleased and if no transmission is in progress.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: mgmt: Dequeue pending mesh_send_sync entries on cancel\n\nIn send_cancel(), pending mesh_tx objects are removed from the\nhdev->mesh_pending list and freed via mesh_send_complete().  However, if\na mesh transmission was already queued onto hdev->cmd_sync_work_list via\nmesh_next(), the queued entry retains a raw pointer to mesh_tx.\n\nWhen hci_cmd_sync_work later processes the entry, it attempts to execute\nmesh_send_sync and its destroy callback mesh_send_start_complete using\nthe already freed mesh_tx pointer, leading to a use-after-free.\n\nFix this by invoking hci_cmd_sync_dequeue() for mesh_send_sync on the\ntarget mesh_tx before completing it.  If the entry is found and dequeued,\nits destroy callback will complete and free the object; otherwise,\nmesh_send_complete() is called directly.\n\nAdditionally, ensure the transmission queue advances after cancellation\nor errors.  In mesh_send_start_complete(), call mesh_next() on error\nunless err is -ECANCELED, because hci_cmd_sync_dequeue() holds\nhdev->cmd_sync_work_lock and calling mesh_next() synchronously would\ndeadlock.  Instead, advance the queue in send_cancel() once the lock is\nreleased and if no transmission is in progress.","source":"cvelist"}],"published":"2026-10-18T15:19:56.287Z","modified":"2026-10-19T10:19:27.457Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","fixed":"f84e52829021d00bca8e067302f597c71af1f71a","status":"affected"},{"type":"git","introduced":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","fixed":"718a8ffa180d469f99ad4f746f00cafd39456415","status":"affected"},{"type":"git","introduced":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","fixed":"084be90948632a5a358821e687b11a14445aae76","status":"affected"},{"type":"git","introduced":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","fixed":"2189a219397d8e73808a67c4aade837b635705da","status":"affected"},{"type":"git","introduced":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","fixed":"03ced4687fb79286be7fdee0fc58d2c74de3e7bb","status":"affected"},{"type":"git","introduced":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","fixed":"71af682ba4692c2ed9ace4c3d4ca462ae368c029","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.1","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.55","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.9","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/f84e52829021d00bca8e067302f597c71af1f71a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/718a8ffa180d469f99ad4f746f00cafd39456415","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/084be90948632a5a358821e687b11a14445aae76","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2189a219397d8e73808a67c4aade837b635705da","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/03ced4687fb79286be7fdee0fc58d2c74de3e7bb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/71af682ba4692c2ed9ace4c3d4ca462ae368c029","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98632","url":"https://www.cve.org/CVERecord?id=CVE-2026-98632","licence":"CVE Terms of Use","modified":"2026-10-19T09:23:00.460Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98632","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98632","licence":"Public domain","modified":"2026-10-19T10:19:27.457Z"}],"updatedAt":"2026-11-25T22:59:45.251Z","epss":{"score":0.00173,"percentile":0.06985,"date":"2026-12-01T12:00:22.000Z"}}