Description
In the Linux kernel, the following vulnerability has been resolved: wifi: mwifiex: fix use-after-free in mwifiex_adapter_cleanup() The mwifiex_adapter_cleanup() function uses timer_delete() (non-synchronous) for the wakeup_timer before the adapter structure is freed. This is incorrect because timer_delete() does not wait for any running timer callback to complete. If the wakeup_timer callback (wakeup_timer_fn) is executing when mwifiex_adapter_cleanup() is called, the callback will continue to access adapter fields (adapter->hw_status, adapter->if_ops.card_reset, etc.) which may be freed by mwifiex_free_adapter() called later in the mwifiex_remove_card() path. Use timer_delete_sync() instead to ensure any running timer callback has completed before returning.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
4636187da60b6e33526050235c610409d9cc00e8 to < c3508895450cca4aeaf5dbadbb5e582363005264affected4636187da60b6e33526050235c610409d9cc00e8 to < 1958a92599b2653d730ccb6f5685fc3fbed21812affected4636187da60b6e33526050235c610409d9cc00e8 to < a88f5391dc68f78cae5eb6a8cd341cafee795d3daffected4636187da60b6e33526050235c610409d9cc00e8 to < 11869ce402d95519d49b25a2a97741f68d69d103affected4636187da60b6e33526050235c610409d9cc00e8 to < 63fe3389b3e092d6c0eeea9fc0318e7918b16618affected4636187da60b6e33526050235c610409d9cc00e8 to < 4e179a60a60c0a5aea245e8e67768343c0f070b8affected4636187da60b6e33526050235c610409d9cc00e8 to < 030abbae49cf9fd1fba7aa08e15ec81efbeb78cfaffected4636187da60b6e33526050235c610409d9cc00e8 to < ae5e95d4157481693be2317e3ffcd84e36010cbbaffected
Linux Linux
Default version status: affected
4.0affected0 to < 4.0unaffected5.10.259 to ≤ 5.10.*unaffected5.15.210 to ≤ 5.15.*unaffected6.1.176 to ≤ 6.1.*unaffected6.6.140 to ≤ 6.6.*unaffected6.12.86 to ≤ 6.12.*unaffected6.18.27 to ≤ 6.18.*unaffected7.0.4 to ≤ 7.0.*unaffected7.1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/c3508895450cca4aeaf5dbadbb5e582363005264 ↗
- https://git.kernel.org/stable/c/1958a92599b2653d730ccb6f5685fc3fbed21812 ↗
- https://git.kernel.org/stable/c/a88f5391dc68f78cae5eb6a8cd341cafee795d3d ↗
- https://git.kernel.org/stable/c/11869ce402d95519d49b25a2a97741f68d69d103 ↗
- https://git.kernel.org/stable/c/63fe3389b3e092d6c0eeea9fc0318e7918b16618 ↗
- https://git.kernel.org/stable/c/4e179a60a60c0a5aea245e8e67768343c0f070b8 ↗
- https://git.kernel.org/stable/c/030abbae49cf9fd1fba7aa08e15ec81efbeb78cf ↗
- https://git.kernel.org/stable/c/ae5e95d4157481693be2317e3ffcd84e36010cbb ↗
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html ↗