Commit 162d331
wifi: mac80211: bounds-check link_id in ieee80211_ml_reconfiguration
link_id is taken from the ML Reconfiguration element (control & 0x000f),
so it can be 0..15. link_removal_timeout[] has IEEE80211_MLD_MAX_NUM_LINKS
(15) elements, so index 15 is out-of-bounds. Skip subelements with
link_id >= IEEE80211_MLD_MAX_NUM_LINKS to avoid a stack out-of-bounds
write.
Fixes: 8eb8dd2 ("wifi: mac80211: Support link removal using Reconfiguration ML element")
Reported-by: Ariel Silver <[email protected]>
Signed-off-by: Ariel Silver <[email protected]>
Cc: [email protected]
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Johannes Berg <[email protected]>1 parent 2259d14 commit 162d331
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7085 | 7085 | | |
7086 | 7086 | | |
7087 | 7087 | | |
| 7088 | + | |
| 7089 | + | |
| 7090 | + | |
7088 | 7091 | | |
7089 | 7092 | | |
7090 | 7093 | | |
| |||
0 commit comments