diff options
| author | 2026-09-03 17:26:16 +0200 | |
|---|---|---|
| committer | 2026-09-04 09:54:42 +0200 | |
| commit | e6031f02269c0f51cf67886d177f02bc300b47cd (patch) | |
| tree | bc50672e199ddf23440fe57de23fd262f1a171fc /scripts/Makefile.thinlto | |
| parent | wifi: mac80211: include TIM bitmap control for buffered S1G mcast traffic (diff) | |
wifi: mac80211: avoid out-of-bounds read for empty PREQ elements
ieee80211_mesh_preq_size_ok() derives the location of the PREQ bottom
fields before checking whether the element contains even the fixed
header. ieee80211_mesh_hwmp_preq_get_bottom() reads the flags byte to
account for the optional Address Extension field. Consequently, an
empty PREQ element causes a one-byte read beyond its declared payload.
Move the helper call after both size checks, so the bottom fields are
only accessed when they are present.
Fixes: 8b40b1d24a60 ("wifi: mac80211: Fix overread in PREQ frame processing")
Cc: stable@vger.kernel.org
Signed-off-by: Ivan Pustogarov <ivan@ipust.net>
Link: https://patch.msgid.link/20260903152616.1646637-1-ivan@ipust.net
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
