Description
In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7915: unwind state on add_interface failure When mt76_wcid_alloc() fails, mt7915_add_interface() returned without clearing the vif_mask/omac_mask bits it had already set, without removing the firmware dev info added earlier, and without clearing a monitor_vif pointer to the vif mac80211 is about to free. mac80211 does not call remove_interface() for a failed add, so the indices and firmware dev entry leaked permanently and testmode could dereference the stale monitor_vif. Add a proper error unwind.
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
b619e01380eedf24e8d26a367e94e0ccaeb0c3dd to < 7198d8fcfdd3ebef3dfbb6073267a053b09f6a05affectedb619e01380eedf24e8d26a367e94e0ccaeb0c3dd to < 218fdf0fcb796b8d281dbdd4a6144c5a8fc7fd0faffectedb619e01380eedf24e8d26a367e94e0ccaeb0c3dd to < 507eddb8175a67df5086354b92d6a4fd7f6f1f96affectedb619e01380eedf24e8d26a367e94e0ccaeb0c3dd to < 71bf9de2ab3fb2c54bedb0b4c9b468d2e1d55280affectedb619e01380eedf24e8d26a367e94e0ccaeb0c3dd to < 2fb6480c52f611338e1b0abe5e6219be1fc9ab75affected
Linux Linux
Default version status: affected
5.19affected0 to < 5.19unaffected6.6.160 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/7198d8fcfdd3ebef3dfbb6073267a053b09f6a05 ↗
- https://git.kernel.org/stable/c/218fdf0fcb796b8d281dbdd4a6144c5a8fc7fd0f ↗
- https://git.kernel.org/stable/c/507eddb8175a67df5086354b92d6a4fd7f6f1f96 ↗
- https://git.kernel.org/stable/c/71bf9de2ab3fb2c54bedb0b4c9b468d2e1d55280 ↗
- https://git.kernel.org/stable/c/2fb6480c52f611338e1b0abe5e6219be1fc9ab75 ↗