wifi: mwifiex: fix use-after-free in mwifiex_adapter_cleanup()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.10.259, Kernel 5.15.210, Kernel 6.1.176 and 12 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4.0 <5.10.259, >=5.11 <5.15.210, >=5.16 <6.1.176, >=6.13 <6.18.27, >=6.19 <7.0.4, >=6.2 <6.6.140, >=6.7 <6.12.86, >=4636187da60b6e33526050235c610409d9cc00e8 <11869ce402d95519d49b25a2a97741f68d69d103, >=4636187da60b6e33526050235c610409d9cc00e8 <1958a92599b2653d730ccb6f5685fc3fbed21812, >=4636187da60b6e33526050235c610409d9cc00e8 <4e179a60a60c0a5aea245e8e67768343c0f070b8, >=4636187da60b6e33526050235c610409d9cc00e8 <63fe3389b3e092d6c0eeea9fc0318e7918b16618, >=4636187da60b6e33526050235c610409d9cc00e8 <a88f5391dc68f78cae5eb6a8cd341cafee795d3d, >=4636187da60b6e33526050235c610409d9cc00e8 <ae5e95d4157481693be2317e3ffcd84e36010cbb, >=4636187da60b6e33526050235c610409d9cc00e8 <c3508895450cca4aeaf5dbadbb5e582363005264, =4.0, >=4636187da60b6e33526050235c610409d9cc00e8 <030abbae49cf9fd1fba7aa08e15ec81efbeb78cf | 5.10.259, 5.15.210, 6.1.176, 6.18.27, 7.0.4, 6.6.140, 6.12.86, 11869ce402d95519d49b25a2a97741f68d69d103, 1958a92599b2653d730ccb6f5685fc3fbed21812, 4e179a60a60c0a5aea245e8e67768343c0f070b8, 63fe3389b3e092d6c0eeea9fc0318e7918b16618, a88f5391dc68f78cae5eb6a8cd341cafee795d3d, ae5e95d4157481693be2317e3ffcd84e36010cbb, c3508895450cca4aeaf5dbadbb5e582363005264, 030abbae49cf9fd1fba7aa08e15ec81efbeb78cf |
| linux-kernel: Kernel | >=4.0.0 <5.10.259, >=5.11.0 <5.15.210, >=5.16.0 <6.1.176, >=6.13.0 <6.18.27, >=6.19.0 <7.0.4, >=6.2.0 <6.6.140, >=6.7.0 <6.12.86 | 5.10.259, 5.15.210, 6.1.176, 6.18.27, 7.0.4, 6.6.140, 6.12.86 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket