summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-05-28 11:11:02 +0300
committerPing-Ke Shih <pkshih@realtek.com>2025-06-10 09:30:46 +0800
commit53cf488927a0f79968f9c03c4d1e00d2a79731c3 (patch)
tree08caa8613a8f04e54c26fb6c8e57092084bf9250 /net/lapb/lapb_iface.c
parent16e3d93c6183649a3b210f82b83c1cb12aa5e8a3 (diff)
wifi: rtw89: mcc: prevent shift wrapping in rtw89_core_mlsr_switch()
The "link_id" value comes from the user via debugfs. If it's larger than BITS_PER_LONG then that would result in shift wrapping and potentially an out of bounds access later. In fact, we can limit it to IEEE80211_MLD_MAX_NUM_LINKS (15). Fortunately, only root can write to debugfs files so the security impact is minimal. Fixes: 9dd85e739ce0 ("wifi: rtw89: debug: add mlo_mode dbgfs") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Zong-Zhe Yang <kevin_yang@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/aDbFFkX09K7FrL9h@stanley.mountain
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions