wifi: libertas_tf: fix UAF in lbtf_free_adapter()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 06b16ae5319251c26377afcb401e46056d5673f4 · < e82536aad653e27c8ca7a8e0f6f816bc3f853ec3| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: libertas_tf: fix UAF in lbtf_free_adapter()
lbtf_free_adapter() calls lbtf_free_cmd_buffer() to free the command buffers before calling timer_delete_sync() to wait for the command timer callback. If the timer callback (command_timer_fn) is already running when lbtf_free_cmd_buffer() frees the command array, the callback dereferences priv->cur_cmd->cmdbuf which points to freed memory.
Swap the order so that timer_delete_sync() runs first, ensuring any in-flight callback has completed before the command buffers are freed.
From the CVE record · Linux
The Linux kernel's libertas_tf Wi-Fi driver can free command buffers while a command timer callback is still running, causing the callback to access freed memory. The input does not establish what an attacker could do with this use-after-free. Network or local access, authentication, and user-interaction requirements are not specified.
Engineers running Linux kernels with the libertas_tf driver should check their systems; affected versions are not specified.