Description
In the Linux kernel, the following vulnerability has been resolved: wifi: mwifiex: fix IRQ leak using wrong index in MSI-X error path mwifiex_pcie_request_irq() registers each MSI-X vector with a per-index dev_id (&card->msix_ctx[i]). On a request_irq() failure the cleanup loop "for (j = 0; j < i; j++)" frees msix_entries[j].vector but passes the failed index's &card->msix_ctx[i] as the dev_id. free_irq() matches on (irq, dev_id), so it fails to find the action registered with &card->msix_ctx[j]: the already-requested IRQ j is not freed (leaked) and free_irq() warns about freeing a non-existent IRQ. Use &card->msix_ctx[j].
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
99074fc1e67b374b5c72406a23ac01fed806d634 to < 11bc2cbb14f450eaa47cce9eb086f948ef8f4bcdaffected99074fc1e67b374b5c72406a23ac01fed806d634 to < 1a60cb2292194cc9eafae7ca8a8a72d37ae78d97affected99074fc1e67b374b5c72406a23ac01fed806d634 to < fcac5813f324cd07dfd36b4adf624fc70f7587d6affected99074fc1e67b374b5c72406a23ac01fed806d634 to < 2761b21cb896b1da8dd46cee5084c9032b2d7098affected99074fc1e67b374b5c72406a23ac01fed806d634 to < 5fd4cc87e6cc0839aac89c24ebe39ce262fe088faffected99074fc1e67b374b5c72406a23ac01fed806d634 to < 0969c9688389f2e0f65b1a924b0dd6625a3bb776affected99074fc1e67b374b5c72406a23ac01fed806d634 to < 03d5e4776e8b71c2468c5c3c48b39202c87a8796affected99074fc1e67b374b5c72406a23ac01fed806d634 to < a3d722190cdef18da4878b5efc27c3c386dda248affected
Linux Linux
Default version status: affected
4.6affected0 to < 4.6unaffected5.10.271 to ≤ 5.10.*unaffected5.15.222 to ≤ 5.15.*unaffected6.1.189 to ≤ 6.1.*unaffected6.6.158 to ≤ 6.6.*unaffected6.12.112 to ≤ 6.12.*unaffected6.18.54 to ≤ 6.18.*unaffected7.2.8 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/11bc2cbb14f450eaa47cce9eb086f948ef8f4bcd ↗
- https://git.kernel.org/stable/c/1a60cb2292194cc9eafae7ca8a8a72d37ae78d97 ↗
- https://git.kernel.org/stable/c/fcac5813f324cd07dfd36b4adf624fc70f7587d6 ↗
- https://git.kernel.org/stable/c/2761b21cb896b1da8dd46cee5084c9032b2d7098 ↗
- https://git.kernel.org/stable/c/5fd4cc87e6cc0839aac89c24ebe39ce262fe088f ↗
- https://git.kernel.org/stable/c/0969c9688389f2e0f65b1a924b0dd6625a3bb776 ↗
- https://git.kernel.org/stable/c/03d5e4776e8b71c2468c5c3c48b39202c87a8796 ↗
- https://git.kernel.org/stable/c/a3d722190cdef18da4878b5efc27c3c386dda248 ↗