wifi: mac80211: reset the AP_VLAN tailroom counter on ifdown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ f9dca80b98caac8b4bfb43a2edf1e9f877ccf322 · < 4b54d01b48445b66c9e576de92b90a3a3ae7b34a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: reset the AP_VLAN tailroom counter on ifdown
On ifup, AP_VLAN interfaces get crypto_tx_tailroom_needed_cnt from the AP interface, but it's never decremented again unless the AP is also brought down. Thus, bringing the same AP_VLAN up again will increment the counter again and eventually hit the sanity check:
WARN_ON_ONCE(sdata->crypto_tx_tailroom_needed_cnt != master->crypto_tx_tailroom_needed_cnt);
Reset it on ifdown to avoid that.
From the CVE record · Linux
The Linux kernel's mac80211 code fails to reset an AP_VLAN crypto tailroom counter when the interface goes down. Repeatedly bringing the same AP_VLAN interface up can increase the counter until it triggers a kernel warning. The input does not describe an attacker path or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels that use mac80211 AP_VLAN interfaces should check their kernel version against the vendor advisory; affected versions are not specified.