wifi: mt76: mt7925: guard link STA in decap offload
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mt76: mt7925: guard link STA in decap offload
mt7925_sta_set_decap_offload() iterates over the vif valid_links mask when updating decap offload state for an MLO station. The station may not have a link STA for every valid link of the vif, so mt792x_sta_to_link() can return NULL for a link that belongs to the vif but not to the station.
The function currently dereferences mlink before checking whether the link WCID is ready. If mlink is NULL, setting or clearing MT_WCID_FLAG_HDR_TRANS dereferences a NULL pointer.
Skip links without a station link before touching mlink->wcid.
From the CVE record · Linux
The Linux kernel's mt7925 decap offload code can dereference a NULL link station pointer when an MLO station lacks a link present in the interface's valid-links mask. The input does not specify attacker capabilities, authentication requirements, or whether user interaction is needed.
Engineers running Linux kernels with the mt7925 Wi-Fi driver should check their kernel's advisory; affected versions are not specified.