Bluetooth: hci_sync: hci_cmd_sync_queue_once() return -EEXIST if exists
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 505ea2b295929e7be2b4e1bc86ee31cb7862fb01 · < 2969554bcfccb5c609f6b6cd4a014933f3a66dd0| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_sync: hci_cmd_sync_queue_once() return -EEXIST if exists
hci_cmd_sync_queue_once() needs to indicate whether a queue item was added, so caller can know if callbacks are called, so it can avoid leaking resources.
Change the function to return -EEXIST if queue item already exists.
Modify all callsites to handle that.
From the CVE record · Linux
The Linux kernel’s Bluetooth hci_sync code can leak resources when hci_cmd_sync_queue_once() finds an item already queued and the caller cannot tell that its callbacks will not run. The input does not specify how an attacker could trigger this or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their versions; the input does not identify affected versions.