Bluetooth: MGMT: free the HCI command when it is cancelled
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 414b365ecea6c30357adee6b8a7c5edc03a03575, Kernel 481533b03985177ddc805e0bd12fc07e7adf9040, Kernel e0cd7b34dc6b5414cac3d4cd376f73d3e9ffbd93 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: free the HCI command when it is cancelled mgmt_hci_cmd_sync() queues the pending command with a NULL destroy callback, so it is only freed if send_hci_cmd_sync() runs. A cancelled entry is leaked, as _hci_cmd_sync_cancel_entry() does not release entry->data when there is no destroy callback, and hci_cmd_sync_clear() cancels every pending entry when the controller is unregistered. Nothing else reclaims it either: mgmt_pending_new() does not put the command on hdev->mgmt_pending. The leak also pins the socket reference taken by mgmt_pending_new(), so the mgmt socket is never released. Free the command from a destroy callback. The now-empty done label is replaced by a direct return.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.13, >=827af4787e74e8df9e8e0677a69fbb15e0856d2f <414b365ecea6c30357adee6b8a7c5edc03a03575, >=827af4787e74e8df9e8e0677a69fbb15e0856d2f <481533b03985177ddc805e0bd12fc07e7adf9040, >=827af4787e74e8df9e8e0677a69fbb15e0856d2f <e0cd7b34dc6b5414cac3d4cd376f73d3e9ffbd93 | 414b365ecea6c30357adee6b8a7c5edc03a03575, 481533b03985177ddc805e0bd12fc07e7adf9040, e0cd7b34dc6b5414cac3d4cd376f73d3e9ffbd93 |
| linux-kernel: Kernel | >=6.13.0 <6.18.52, >=6.19.0 <7.2.6 | 6.18.52, 7.2.6 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket