Bluetooth: hci_sync: fix double free in 'hci_discovery_filter_clear()'
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ad383c2c65a5baf16e334cd40a013cc302176891 · < 2935e556850e9c94d7a00adf14d3cd7fe406ac03| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_sync: fix double free in 'hci_discovery_filter_clear()'
Function 'hci_discovery_filter_clear()' frees 'uuids' array and then sets it to NULL. There is a tiny chance of the following race:
'hci_cmd_sync_work()'
'update_passive_scan_sync()'
'hci_update_passive_scan_sync()'
'hci_discovery_filter_clear()' kfree(uuids);
<-------------------------preempted--------------------------------> 'start_service_discovery()'
From the CVE record · Linux
A race in the Linux kernel's Bluetooth discovery filter can free the same UUID array twice. Concurrent discovery operations can trigger a kernel crash; the reported trace shows a local Bluetooth socket operation, but the input does not establish an authentication requirement.
Engineers running Linux kernels with the affected Bluetooth discovery filter code should check their kernel against the vendor advisory; affected versions are not specified.