wifi: mt76: mt7915: unwind state on add_interface failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b619e01380eedf24e8d26a367e94e0ccaeb0c3dd · < 2fb6480c52f611338e1b0abe5e6219be1fc9ab75| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
In the Linux kernel's mt76 mt7915 Wi-Fi driver, a failed interface addition can leave allocated indices and firmware device information behind. If mt76_wcid_alloc() fails, it can also leave a stale monitor_vif pointer that testmode may dereference. The input does not specify whether an attacker can trigger this condition or whether authentication or user interaction is required.
Engineers running Linux kernels with the mt76 mt7915 Wi-Fi driver should check their versions against the vendor advisory; affected versions are not specified.