Bluetooth: MGMT: free the mesh send cancel 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 fa46d428c014e7b72a18634679815670418e67dc, Kernel 05438d338a875a9daa08ca3f6a35b4480cf13de4, Kernel 3c742feda8fcabf741a17bcf668b63c8f606f9c5 and 8 more.
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: free the mesh send cancel command when it is cancelled mesh_send_cancel() queues the pending command with a NULL destroy callback, so it is only freed if send_cancel() 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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=b338d91703fae6f6afd67f3f75caa3b8f36ddef3 <fa46d428c014e7b72a18634679815670418e67dc, >=b338d91703fae6f6afd67f3f75caa3b8f36ddef3 <05438d338a875a9daa08ca3f6a35b4480cf13de4, >=b338d91703fae6f6afd67f3f75caa3b8f36ddef3 <3c742feda8fcabf741a17bcf668b63c8f606f9c5, >=b338d91703fae6f6afd67f3f75caa3b8f36ddef3 <416fabca9b7237b76aa9cafcf8c497b8ac00d88c, >=b338d91703fae6f6afd67f3f75caa3b8f36ddef3 <88e30d036d777b00aed42bd35000de23ff40910c, >=b338d91703fae6f6afd67f3f75caa3b8f36ddef3 <b609341ee56967d9a45845ff26f79336d2114b55, =6.1 | fa46d428c014e7b72a18634679815670418e67dc, 05438d338a875a9daa08ca3f6a35b4480cf13de4, 3c742feda8fcabf741a17bcf668b63c8f606f9c5, 416fabca9b7237b76aa9cafcf8c497b8ac00d88c, 88e30d036d777b00aed42bd35000de23ff40910c, b609341ee56967d9a45845ff26f79336d2114b55 |
| linux-kernel: Kernel | >=6.13.0 <6.18.52, >=6.19.0 <7.2.6, >=6.2.0 <6.6.157, >=6.7.0 <6.12.110, >=6.1.0 <6.1.188 | 6.18.52, 7.2.6, 6.6.157, 6.12.110, 6.1.188 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket