Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: btrtl: Prevent potential NULL dereference The btrtl_initialize() function checks that rtl_load_file() either had an error or it loaded a zero length file. However, if it loaded a zero length file then the error code is not set correctly. It results in an error pointer vs NULL bug, followed by a NULL pointer dereference. This was detected by Smatch: drivers/bluetooth/btrtl.c:592 btrtl_initialize() warn: passing zero to 'ERR_PTR'
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 26503ad25de8c7c93a2037f919c2e49a62cf65f1 before c3e9717276affe59fd8213706db021b493e81e34; affected 26503ad25de8c7c93a2037f919c2e49a62cf65f1 before 73dc99c0ea94abd22379b2d82cacbc73f3e18ec1; affected 26503ad25de8c7c93a2037f919c2e49a62cf65f1 before 2d7c60c2a38b4b461fa960ad0995136a6bfe0756; affected 26503ad25de8c7c93a2037f919c2e49a62cf65f1 before d8441818690d795232331bd8358545c5c95b6b72; affected 26503ad25de8c7c93a2037f919c2e49a62cf65f1 before 3db6605043b50c8bb768547b23e0222f67ceef3e; affected 26503ad25de8c7c93a2037f919c2e49a62cf65f1 before aaf356f872a60db1e96fb762a62c4607fd22741f; affected 26503ad25de8c7c93a2037f919c2e49a62cf65f1 before 53ceef799dcfc22c734d600811bfc9dd32eaea0a; affected 26503ad25de8c7c93a2037f919c2e49a62cf65f1 before 324dddea321078a6eeb535c2bff5257be74c9799 |
| Linux / Linux | affected 4.19; unaffected 0 before 4.19; unaffected 5.4.293 through 5.4.*; unaffected 5.10.237 through 5.10.*; unaffected 5.15.181 through 5.15.*; unaffected 6.1.135 through 6.1.*; unaffected 6.6.88 through 6.6.*; unaffected 6.12.25 through 6.12.*; unaffected 6.14.4 through 6.14.*; unaffected 6.15 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/c3e9717276affe59fd8213706db021b493e81e34
- https://git.kernel.org/stable/c/73dc99c0ea94abd22379b2d82cacbc73f3e18ec1
- https://git.kernel.org/stable/c/2d7c60c2a38b4b461fa960ad0995136a6bfe0756
- https://git.kernel.org/stable/c/d8441818690d795232331bd8358545c5c95b6b72
- https://git.kernel.org/stable/c/3db6605043b50c8bb768547b23e0222f67ceef3e
- https://git.kernel.org/stable/c/aaf356f872a60db1e96fb762a62c4607fd22741f
- https://git.kernel.org/stable/c/53ceef799dcfc22c734d600811bfc9dd32eaea0a
- https://git.kernel.org/stable/c/324dddea321078a6eeb535c2bff5257be74c9799
ADP enrichment
No English description supplied.