wifi: mac80211: check tdls flag in ieee80211_tdls_oper
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 941c93cd039852b7ab02c74f4698c99d82bd6cfe · < be81f17151fcb8546a95f35ca8f4231b065985de| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: check tdls flag in ieee80211_tdls_oper
When NL80211_TDLS_ENABLE_LINK is called, the code only checks if the station exists but not whether it is actually a TDLS station. This allows the operation to proceed for non-TDLS stations, causing unintended side effects like modifying channel context and HT protection before failing.
Add a check for sta->sta.tdls early in the ENABLE_LINK case, before any side effects occur, to ensure the operation is only allowed for actual TDLS peers.
From the CVE record · Linux
The Linux kernel's mac80211 code does not verify that a station is a TDLS peer when handling NL80211_TDLS_ENABLE_LINK. A caller can invoke the operation for an existing non-TDLS station, modifying channel context and HT protection before the operation fails. The input does not specify access requirements.
Engineers running the Linux kernel should check whether their version includes the mac80211 TDLS fix; affected versions are not specified.