Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 371805522f870986144fcd88727a47858e364a2c before 95e8601af227b2b4390eecf8db6abdb9f6a91f17; affected 371805522f870986144fcd88727a47858e364a2c before e6d95488c8c964d1df0d3e1db44c958706311e86; affected 371805522f870986144fcd88727a47858e364a2c before b2dfbf1b5ff192cefd49574b951a4af9ddd32213; affected 371805522f870986144fcd88727a47858e364a2c before 28904375d54b436a757641fb0331537778c0de5a; affected 371805522f870986144fcd88727a47858e364a2c before 5213ef54528dd1ac79b846e30d8f72ce092794aa; affected 371805522f870986144fcd88727a47858e364a2c before 9ecbfd93cd6de6c78cb7fd51fe079e36c7ff074b; affected 371805522f870986144fcd88727a47858e364a2c before a7803df606a7d22e896b030f619e1d9d20ae0c6b; affected 371805522f870986144fcd88727a47858e364a2c before 31148a7be723aa9f2e8fbd62424825ab8d577973 |
| Linux / Linux | affected 4.12; unaffected 0 before 4.12; unaffected 5.10.253 through 5.10.*; unaffected 5.15.203 through 5.15.*; unaffected 6.1.168 through 6.1.*; unaffected 6.6.131 through 6.6.*; unaffected 6.12.80 through 6.12.*; unaffected 6.18.21 through 6.18.*; unaffected 6.19.11 through 6.19.*; unaffected 7.0 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/95e8601af227b2b4390eecf8db6abdb9f6a91f17
- https://git.kernel.org/stable/c/e6d95488c8c964d1df0d3e1db44c958706311e86
- https://git.kernel.org/stable/c/b2dfbf1b5ff192cefd49574b951a4af9ddd32213
- https://git.kernel.org/stable/c/28904375d54b436a757641fb0331537778c0de5a
- https://git.kernel.org/stable/c/5213ef54528dd1ac79b846e30d8f72ce092794aa
- https://git.kernel.org/stable/c/9ecbfd93cd6de6c78cb7fd51fe079e36c7ff074b
- https://git.kernel.org/stable/c/a7803df606a7d22e896b030f619e1d9d20ae0c6b
- https://git.kernel.org/stable/c/31148a7be723aa9f2e8fbd62424825ab8d577973