]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rsi: bound background scan probe request copy
authorPengpeng Hou <pengpeng@iscas.ac.cn>
Sat, 4 Jul 2026 01:12:30 +0000 (09:12 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Jul 2026 12:11:08 +0000 (14:11 +0200)
commitd06a3e60c8fead962f08cf951eb1de7bd22dab76
tree5a8f0b189832bdd9d0b901871169ad1378efbbdf
parent13ff543e0b2c713aedeaadadde686686e949dc78
wifi: rsi: bound background scan probe request copy

rsi_send_bgscan_probe_req() allocates room for struct
rsi_bgscan_probe plus MAX_BGSCAN_PROBE_REQ_LEN bytes, but copies the
entire mac80211-generated probe request skb after the fixed header.
The probe request length depends on scan IEs and is not checked
against the fixed firmware buffer.

Reject generated probe requests that do not fit the firmware command
buffer before copying them into the skb.

Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260704011231.45593-1-pengpeng@iscas.ac.cn
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/rsi/rsi_91x_mgmt.c