Bluetooth: hci_ll: Fix firmware leak on error path
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 371805522f870986144fcd88727a47858e364a2c · < 9ecbfd93cd6de6c78cb7fd51fe079e36c7ff074b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: hci_ll: Fix firmware leak on error path
Smatch reports:
drivers/bluetooth/hci_ll.c:587 download_firmware() warn: 'fw' from request_firmware() not released on lines: 544.
In download_firmware(), if request_firmware() succeeds but the returned firmware content is invalid (no data or zero size), the function returns without releasing the firmware, resulting in a resource leak.
Fix this by calling release_firmware() before returning when request_firmware() succeeded but the firmware content is invalid.
From the CVE record · Linux
The Linux kernel Bluetooth hci_ll firmware download path leaks a firmware resource if a firmware request succeeds but returns no data or zero-size content. The input does not describe how an attacker could trigger this condition or specify access or user-interaction requirements.
Engineers running Linux kernels with the Bluetooth hci_ll driver should check whether their kernel includes the fix; affected versions were not provided.