wifi: wcn36xx: Fix potential use-after-free in TX ack timer teardown
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 15e59e377facc87ce82228279d88efaa89fdbca5, Kernel 2bddc5d088cf430ecd913020472f1def32a36a3d, Kernel 3edabc965bcce49cbb2ec1c2b91f8a555a8ec8bd and 5 more.
In the Linux kernel, the following vulnerability has been resolved: wifi: wcn36xx: Fix potential use-after-free in TX ack timer teardown wcn36xx_dxe_deinit() tears down the TX ack timer with timer_delete(), which only dequeues the timer and does not wait for a callback that is already executing; the preceding free_irq() calls synchronize the interrupt handlers only. The callback, wcn36xx_dxe_tx_timer(), can therefore be running past the teardown and use the wcn freed along with the ieee80211_hw in wcn36xx_remove(): it takes wcn->dxe_lock, reads wcn->tx_ack_skb and passes wcn->hw to ieee80211_tx_status_irqsafe(). Fix this by using timer_shutdown_sync(), which waits for a running callback and also prevents the timer from being rearmed again. The timer is set up again by wcn36xx_dxe_init() on the next start, so the start/stop cycle is unaffected. This issue was found by an in-house static analysis tool.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.10, >=fdf21cc3714939dd4327f3d664fe5863d15ccb31 <15e59e377facc87ce82228279d88efaa89fdbca5, >=fdf21cc3714939dd4327f3d664fe5863d15ccb31 <2bddc5d088cf430ecd913020472f1def32a36a3d, >=fdf21cc3714939dd4327f3d664fe5863d15ccb31 <3edabc965bcce49cbb2ec1c2b91f8a555a8ec8bd, >=fdf21cc3714939dd4327f3d664fe5863d15ccb31 <7ce1e55a439968a298a63d3199cb1c2636429746, >=fdf21cc3714939dd4327f3d664fe5863d15ccb31 <915298dbb766d2311b0822ab6ef24780def0bd53, >=fdf21cc3714939dd4327f3d664fe5863d15ccb31 <c0df0878e9110909cf0bec6080d72d36401a0c89, >=fdf21cc3714939dd4327f3d664fe5863d15ccb31 <d9be5e75530772fc31637070d51e5717d6aeaa2a, >=fdf21cc3714939dd4327f3d664fe5863d15ccb31 <e7f265d507ee55017b67ef4722df884468be1113 | 15e59e377facc87ce82228279d88efaa89fdbca5, 2bddc5d088cf430ecd913020472f1def32a36a3d, 3edabc965bcce49cbb2ec1c2b91f8a555a8ec8bd, 7ce1e55a439968a298a63d3199cb1c2636429746, 915298dbb766d2311b0822ab6ef24780def0bd53, c0df0878e9110909cf0bec6080d72d36401a0c89, d9be5e75530772fc31637070d51e5717d6aeaa2a, e7f265d507ee55017b67ef4722df884468be1113 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket