wifi: mt76: mt7996: free vif links after clearing wcid entries on full reset
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.527.2.67.3In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7996: free vif links after clearing wcid entries on full reset
mt7996_mac_reset_vif_iter() queues non-default vif links for kfree_rcu while dev->wcid[] still holds pointers to the wcid embedded in each freed link; mt76_reset_device() then dereferences those entries and runs mt76_wcid_cleanup() on them. If a grace period elapses in between, the cleanup operates on freed memory.
Run mt76_reset_device() first, so the wcid entries are cleaned up and cleared while the links are still valid.
From the CVE record · Linux
During a full reset, the mt7996 Wi-Fi driver can free virtual interface links before clearing references to them. If an RCU grace period elapses before cleanup, the kernel can access freed memory. The input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with the mt7996 Wi-Fi driver should check their kernel versions; affected versions are not specified.