{"id":"CVE-2026-98632","state":"PUBLISHED","title":"Bluetooth: mgmt: Dequeue pending mesh_send_sync entries on cancel","description":"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.","publishedAt":"2026-10-18T15:19:56.287Z","updatedAt":"2026-10-19T09:23:00.460Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","status":"affected","lessThan":"f84e52829021d00bca8e067302f597c71af1f71a","versionType":"git"},{"version":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","status":"affected","lessThan":"718a8ffa180d469f99ad4f746f00cafd39456415","versionType":"git"},{"version":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","status":"affected","lessThan":"084be90948632a5a358821e687b11a14445aae76","versionType":"git"},{"version":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","status":"affected","lessThan":"2189a219397d8e73808a67c4aade837b635705da","versionType":"git"},{"version":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","status":"affected","lessThan":"03ced4687fb79286be7fdee0fc58d2c74de3e7bb","versionType":"git"},{"version":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","status":"affected","lessThan":"71af682ba4692c2ed9ace4c3d4ca462ae368c029","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/mgmt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.1","versionType":"semver"},{"version":"6.1.189","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.158","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.55","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.9","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/mgmt.c"]}],"references":["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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98632.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98632","state":"PUBLISHED","datePublished":"2026-10-18T15:19:56.287Z","dateUpdated":"2026-10-19T09:23:00.460Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.361Z"},"containers":{"cna":{"title":"Bluetooth: mgmt: Dequeue pending mesh_send_sync entries on cancel","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","status":"affected","lessThan":"f84e52829021d00bca8e067302f597c71af1f71a","versionType":"git"},{"version":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","status":"affected","lessThan":"718a8ffa180d469f99ad4f746f00cafd39456415","versionType":"git"},{"version":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","status":"affected","lessThan":"084be90948632a5a358821e687b11a14445aae76","versionType":"git"},{"version":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","status":"affected","lessThan":"2189a219397d8e73808a67c4aade837b635705da","versionType":"git"},{"version":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","status":"affected","lessThan":"03ced4687fb79286be7fdee0fc58d2c74de3e7bb","versionType":"git"},{"version":"b338d91703fae6f6afd67f3f75caa3b8f36ddef3","status":"affected","lessThan":"71af682ba4692c2ed9ace4c3d4ca462ae368c029","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/mgmt.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.1","versionType":"semver"},{"version":"6.1.189","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.158","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.112","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.55","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.9","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/mgmt.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f84e52829021d00bca8e067302f597c71af1f71a"},{"url":"https://git.kernel.org/stable/c/718a8ffa180d469f99ad4f746f00cafd39456415"},{"url":"https://git.kernel.org/stable/c/084be90948632a5a358821e687b11a14445aae76"},{"url":"https://git.kernel.org/stable/c/2189a219397d8e73808a67c4aade837b635705da"},{"url":"https://git.kernel.org/stable/c/03ced4687fb79286be7fdee0fc58d2c74de3e7bb"},{"url":"https://git.kernel.org/stable/c/71af682ba4692c2ed9ace4c3d4ca462ae368c029"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:23:00.460Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.1.189"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.6.158"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.12.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"6.18.55"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"7.2.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}