Skip to content
Heist/ feed
Back to feed
UnratedFix available

Bluetooth: use hdev->workqueue when queuing hdev->{cmd,ncmd}_timer works

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: use hdev->workqueue when queuing hdev->{cmd,ncmd}_timer works syzbot is reporting attempt to schedule hdev->cmd_work work from system_wq WQ into hdev->workqueue WQ which is under draining operation [1], for commit c8efcc2589464ac7 ("workqueue: allow chained queueing during destruction") does not allow such operation. The check introduced by commit 877afadad2dce8aa ("Bluetooth: When HCI work queue is drained, only queue chained work") was incomplete. Use hdev->workqueue WQ when queuing hdev->{cmd,ncmd}_timer works because hci_{cmd,ncmd}_timeout() calls queue_work(hdev->workqueue). Also, protect the queuing operation with RCU read lock in order to avoid calling queue_delayed_work() after cancel_delayed_work() completed.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.19.15, 6.0.1
CVEs
CVE-2022-50833
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 08:56 UTC · Revision 1

Source evidence

Bluetooth: use hdev->workqueue when queuing hdev->{cmd,ncmd}_timer works

core-osv · Original source

Published 30 Dec 2025, 12:10 UTC

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: use hdev->workqueue when queuing hdev->{cmd,ncmd}_timer works syzbot is reporting attempt to schedule hdev->cmd_work work from system_wq WQ into hdev->workqueue WQ which is under draining operation [1], for commit c8efcc2589464ac7 ("workqueue: allow chained queueing during destruction") does not allow such operation. The check introduced by commit 877afadad2dce8aa ("Bluetooth: When HCI work queue is drained, only queue chained work") was incomplete. Use hdev->workqueue WQ when queuing hdev->{cmd,ncmd}_timer works because hci_{cmd,ncmd}_timeout() calls queue_work(hdev->workqueue). Also, protect the queuing operation with RCU read lock in order to avoid calling queue_delayed_work() after cancel_delayed_work() completed.

osv:CVE-2022-50833

Kernel

Fixed versions: 5.19.15, 6.0.1

Complete source record
{
  "id": "2373bfeb246c8e1b4fb98a6bce4e6db84ea59ed44b803bb6776bcb9014b104e3",
  "url": "https://osv.dev/vulnerability/CVE-2022-50833",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Bluetooth: use hdev->workqueue when queuing hdev->{cmd,ncmd}_timer works",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: Bluetooth: use hdev->workqueue when queuing hdev->{cmd,ncmd}_timer works syzbot is reporting attempt to schedule hdev->cmd_work work from system_wq WQ into hdev->workqueue WQ which is under draining operation [1], for commit c8efcc2589464ac7 (\"workqueue: allow chained queueing during destruction\") does not allow such operation. The check introduced by commit 877afadad2dce8aa (\"Bluetooth: When HCI work queue is drained, only queue chained work\") was incomplete. Use hdev->workqueue WQ when queuing hdev->{cmd,ncmd}_timer works because hci_{cmd,ncmd}_timeout() calls queue_work(hdev->workqueue). Also, protect the queuing operation with RCU read lock in order to avoid calling queue_delayed_work() after cancel_delayed_work() completed.",
    "evidence": "osv:CVE-2022-50833",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.19.15",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-50833",
      "aliases": [
        "CVE-2022-50833"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3b382555706558f5c0587862b6dc03e96a252bba"
                },
                {
                  "fixed": "c4635cf3d845a7324c25c52d549b70c8bd7ad4c7"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "877afadad2dce8aae1f2aad8ce47e072d4f6165e"
                },
                {
                  "fixed": "3c6b036fe5c8ed8b6c4cbdc03605929882907ef0"
                },
                {
                  "fixed": "deee93d13d385103205879a8a0915036ecd83261"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.19.2"
                },
                {
                  "fixed": "5.19.15"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5.18.18"
                },
                {
                  "fixed": "5.19"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4bf367fa1fefabdf14938d0ac9ed60020389112e"
                }
              ]
            }
          ],
          "versions": [
            "v5.19.14",
            "v5.19.13",
            "v5.19.12",
            "v5.19.11",
            "v5.19.10",
            "v5.19.9",
            "v5.19.8",
            "v5.19.7",
            "v5.19.6",
            "v5.19.5",
            "v5.19.4",
            "v5.19.3",
            "v5.19.2",
            "v5.18.19",
            "v5.18.18"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50833.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.19.15"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.20.0"
                },
                {
                  "fixed": "6.0.1"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50833.json"
          }
        }
      ],
      "modified": "2026-10-08T02:47:50.647397302Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/3c6b036fe5c8ed8b6c4cbdc03605929882907ef0",
        "https://git.kernel.org/stable/c/c4635cf3d845a7324c25c52d549b70c8bd7ad4c7",
        "https://git.kernel.org/stable/c/deee93d13d385103205879a8a0915036ecd83261",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50833.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-50833",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50833.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-50833",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 98238,
  "published_at": "2025-12-30T12:10:54.342+00:00"
}