Commit 9c6c91b
Bluetooth: btsdio: fix use after free bug in btsdio_remove due to race condition
jira VULN-3967
jira VULN-68015
cve CVE-2023-1989
cve CVE-2023-53145
commit-author Zheng Wang <zyytlz.wz@163.com>
commit 73f7b17
In btsdio_probe, the data->work is bound with btsdio_work. It will be
started in btsdio_send_frame.
If the btsdio_remove runs with a unfinished work, there may be a race
condition that hdev is freed but used in btsdio_work. Fix it by
canceling the work before do cleanup in btsdio_remove.
Signed-off-by: Zheng Wang <zyytlz.wz@163.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
(cherry picked from commit 73f7b17)
Signed-off-by: Marcin Wcisło <marcin.wcislo@conclusive.pl>1 parent 0072428 commit 9c6c91b
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| 373 | + | |
373 | 374 | | |
374 | 375 | | |
375 | 376 | | |
| |||
0 commit comments