{"id":"CVE-2022-50833","state":"PUBLISHED","title":"Bluetooth: use hdev->workqueue when queuing hdev->{cmd,ncmd}_timer works","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: use hdev->workqueue when queuing hdev->{cmd,ncmd}_timer works\n\nsyzbot is reporting attempt to schedule hdev->cmd_work work from system_wq\nWQ into hdev->workqueue WQ which is under draining operation [1], for\ncommit c8efcc2589464ac7 (\"workqueue: allow chained queueing during\ndestruction\") does not allow such operation.\n\nThe check introduced by commit 877afadad2dce8aa (\"Bluetooth: When HCI work\nqueue is drained, only queue chained work\") was incomplete.\n\nUse hdev->workqueue WQ when queuing hdev->{cmd,ncmd}_timer works because\nhci_{cmd,ncmd}_timeout() calls queue_work(hdev->workqueue). Also, protect\nthe queuing operation with RCU read lock in order to avoid calling\nqueue_delayed_work() after cancel_delayed_work() completed.","publishedAt":"2025-12-30T12:10:54.342Z","updatedAt":"2026-05-23T15:25:18.248Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3b382555706558f5c0587862b6dc03e96a252bba","status":"affected","lessThan":"c4635cf3d845a7324c25c52d549b70c8bd7ad4c7","versionType":"git"},{"version":"877afadad2dce8aae1f2aad8ce47e072d4f6165e","status":"affected","lessThan":"3c6b036fe5c8ed8b6c4cbdc03605929882907ef0","versionType":"git"},{"version":"877afadad2dce8aae1f2aad8ce47e072d4f6165e","status":"affected","lessThan":"deee93d13d385103205879a8a0915036ecd83261","versionType":"git"},{"version":"4bf367fa1fefabdf14938d0ac9ed60020389112e","status":"affected","versionType":"git"},{"version":"5.19.2","status":"affected","lessThan":"5.19.15","versionType":"semver"},{"version":"5.18.18","status":"affected","lessThan":"5.19","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_core.c","net/bluetooth/hci_event.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"5.19.15","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0.1","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_core.c","net/bluetooth/hci_event.c"]}],"references":["https://git.kernel.org/stable/c/c4635cf3d845a7324c25c52d549b70c8bd7ad4c7","https://git.kernel.org/stable/c/3c6b036fe5c8ed8b6c4cbdc03605929882907ef0","https://git.kernel.org/stable/c/deee93d13d385103205879a8a0915036ecd83261"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50833.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50833","state":"PUBLISHED","datePublished":"2025-12-30T12:10:54.342Z","dateUpdated":"2026-05-23T15:25:18.248Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-30T12:06:07.132Z"},"containers":{"cna":{"title":"Bluetooth: use hdev->workqueue when queuing hdev->{cmd,ncmd}_timer works","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nBluetooth: use hdev->workqueue when queuing hdev->{cmd,ncmd}_timer works\n\nsyzbot is reporting attempt to schedule hdev->cmd_work work from system_wq\nWQ into hdev->workqueue WQ which is under draining operation [1], for\ncommit c8efcc2589464ac7 (\"workqueue: allow chained queueing during\ndestruction\") does not allow such operation.\n\nThe check introduced by commit 877afadad2dce8aa (\"Bluetooth: When HCI work\nqueue is drained, only queue chained work\") was incomplete.\n\nUse hdev->workqueue WQ when queuing hdev->{cmd,ncmd}_timer works because\nhci_{cmd,ncmd}_timeout() calls queue_work(hdev->workqueue). Also, protect\nthe queuing operation with RCU read lock in order to avoid calling\nqueue_delayed_work() after cancel_delayed_work() completed."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3b382555706558f5c0587862b6dc03e96a252bba","status":"affected","lessThan":"c4635cf3d845a7324c25c52d549b70c8bd7ad4c7","versionType":"git"},{"version":"877afadad2dce8aae1f2aad8ce47e072d4f6165e","status":"affected","lessThan":"3c6b036fe5c8ed8b6c4cbdc03605929882907ef0","versionType":"git"},{"version":"877afadad2dce8aae1f2aad8ce47e072d4f6165e","status":"affected","lessThan":"deee93d13d385103205879a8a0915036ecd83261","versionType":"git"},{"version":"4bf367fa1fefabdf14938d0ac9ed60020389112e","status":"affected","versionType":"git"},{"version":"5.19.2","status":"affected","lessThan":"5.19.15","versionType":"semver"},{"version":"5.18.18","status":"affected","lessThan":"5.19","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_core.c","net/bluetooth/hci_event.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"5.19.15","status":"unaffected","lessThanOrEqual":"5.19.*","versionType":"semver"},{"version":"6.0.1","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/bluetooth/hci_core.c","net/bluetooth/hci_event.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/c4635cf3d845a7324c25c52d549b70c8bd7ad4c7"},{"url":"https://git.kernel.org/stable/c/3c6b036fe5c8ed8b6c4cbdc03605929882907ef0"},{"url":"https://git.kernel.org/stable/c/deee93d13d385103205879a8a0915036ecd83261"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:25:18.248Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19.2","versionEndExcluding":"5.19.15"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.0.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18.18"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}