Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 06b16ae5319251c26377afcb401e46056d5673f4 before 3fb3663260ec396f86b733aab9f81fac6669d2fa; affected 06b16ae5319251c26377afcb401e46056d5673f4 before f6c3fa0d17ca0c9e6033bb45f52e33b27a9a40e6; affected 06b16ae5319251c26377afcb401e46056d5673f4 before b4745d6063758c681d33affca9733bbd356b6ea1; affected 06b16ae5319251c26377afcb401e46056d5673f4 before 41b1a4d545ec348b7d5324b6d4f4c6a3e0326d46; affected 06b16ae5319251c26377afcb401e46056d5673f4 before 2b99bfc5a127ce8cd6a887d82815fc2e712f365b; affected 06b16ae5319251c26377afcb401e46056d5673f4 before e82536aad653e27c8ca7a8e0f6f816bc3f853ec3; affected 06b16ae5319251c26377afcb401e46056d5673f4 before 04c837d413dc11a91e0275b08b9e35a6c111175e; affected 06b16ae5319251c26377afcb401e46056d5673f4 before bbb9a0ab96d44a64529aafc7a16de460a1712f6a |
| Linux / Linux | affected 2.6.28; unaffected 0 before 2.6.28; unaffected 5.10.271 through 5.10.*; unaffected 5.15.222 through 5.15.*; unaffected 6.1.189 through 6.1.*; unaffected 6.6.158 through 6.6.*; unaffected 6.12.112 through 6.12.*; unaffected 6.18.54 through 6.18.*; unaffected 7.2.8 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/3fb3663260ec396f86b733aab9f81fac6669d2fa
- https://git.kernel.org/stable/c/f6c3fa0d17ca0c9e6033bb45f52e33b27a9a40e6
- https://git.kernel.org/stable/c/b4745d6063758c681d33affca9733bbd356b6ea1
- https://git.kernel.org/stable/c/41b1a4d545ec348b7d5324b6d4f4c6a3e0326d46
- https://git.kernel.org/stable/c/2b99bfc5a127ce8cd6a887d82815fc2e712f365b
- https://git.kernel.org/stable/c/e82536aad653e27c8ca7a8e0f6f816bc3f853ec3
- https://git.kernel.org/stable/c/04c837d413dc11a91e0275b08b9e35a6c111175e
- https://git.kernel.org/stable/c/bbb9a0ab96d44a64529aafc7a16de460a1712f6a