Bluetooth: btsdio: fix use after free bug in btsdio_remove due to race condition
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ddbaf13e3609442b64abb931ac21527772d87980 · < 179c65828593aff1f444e15debd40a477cb23cf4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: btsdio: fix use after free bug in btsdio_remove due to race condition
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.
From the CVE record · Linux
A race in the Linux kernel's Bluetooth btsdio driver can cause btsdio_work to use an hdev object after btsdio_remove frees it. This can happen when removal runs while work is unfinished. The input does not specify attacker access requirements or the resulting impact.
Engineers running Linux kernels with the Bluetooth btsdio driver should check their versions; affected versions are not specified.