Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected b619e01380eedf24e8d26a367e94e0ccaeb0c3dd before 7198d8fcfdd3ebef3dfbb6073267a053b09f6a05; affected b619e01380eedf24e8d26a367e94e0ccaeb0c3dd before 218fdf0fcb796b8d281dbdd4a6144c5a8fc7fd0f; affected b619e01380eedf24e8d26a367e94e0ccaeb0c3dd before 507eddb8175a67df5086354b92d6a4fd7f6f1f96; affected b619e01380eedf24e8d26a367e94e0ccaeb0c3dd before 71bf9de2ab3fb2c54bedb0b4c9b468d2e1d55280; affected b619e01380eedf24e8d26a367e94e0ccaeb0c3dd before 2fb6480c52f611338e1b0abe5e6219be1fc9ab75 |
| Linux / Linux | affected 5.19; unaffected 0 before 5.19; unaffected 6.6.160 through 6.6.*; unaffected 6.12.110 through 6.12.*; unaffected 6.18.52 through 6.18.*; unaffected 7.2.6 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
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