bluetooth/hci: disallow setting handle bigger than HCI_CONN_HANDLE_MAX
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bluetooth/hci: disallow setting handle bigger than HCI_CONN_HANDLE_MAX
Syzbot hit warning in hci_conn_del() caused by freeing handle that was not allocated using ida allocator.
This is caused by handle bigger than HCI_CONN_HANDLE_MAX passed by hci_le_big_sync_established_evt(), which makes code think it's unset connection.
Add same check for handle upper bound as in hci_conn_set_handle() to prevent warning.
From the CVE record · Linux
The Linux kernel’s Bluetooth HCI code can pass a handle larger than HCI_CONN_HANDLE_MAX to connection cleanup, causing a warning when it frees a handle the allocator did not allocate. Syzbot triggered the warning; the input does not establish whether an attacker can trigger it or specify network or local access, authentication, or user-interaction requirements.
Engineers running Linux kernels with Bluetooth HCI support should check their versions; affected versions are not specified.