diff options
| author | Wahid Khan <wahidzk0091@gmail.com> | 2026-11-05 02:44:50 +0530 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-11-10 10:52:02 +0100 |
| commit | 3ea152f3f77eeffc37b2f4423688b4df9136f90c (patch) | |
| tree | 90bd741ee8167ede57cec7461362658d563bfb87 /tools/perf/scripts/python | |
| parent | 5e25f6b1b18d507828f7bb4be9bdcd240fbb923d (diff) | |
wifi: cfg80211: don't truncate the merged MBSSID profile length
cfg80211_parse_mbssid_data() keeps the length of a non-transmitted BSSID
profile in a u8. cfg80211_merge_profile() returns a size_t, and it
concatenates a profile that is split over several Multiple BSSID
elements, so the merged length can be well above 255 even though every
single sub-element is at most 255 bytes long.
The value is then cut to its low 8 bits. A 300 byte profile is handled
as a 44 byte one: the elements after the cut are lost from the generated
non-transmitted BSS, and if the Multiple BSSID-Index element lies past
the cut the BSS is dropped altogether. Any AP in range can send such a
profile.
The multi-link code further down in the same file already uses a signed
size type for the profile length. Do the same here, cfg80211_find_ie()
and cfg80211_gen_new_ie() take a size_t anyway.
Fixes: fe806e4992c9 ("cfg80211: support profile split between elements")
Cc: stable@vger.kernel.org
Signed-off-by: Wahid Khan <wahidzk0091@gmail.com>
Link: https://patch.msgid.link/20261104211451.693451-1-wahidzk0091@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
