diff options
| author | Zhao Li <enderaoelyther@gmail.com> | 2026-10-28 22:21:01 +0800 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-11-10 10:19:45 +0100 |
| commit | 339564c7ac50464695dfed847f89d118f4cc1dc5 (patch) | |
| tree | 1fa4d3e61cf523c54e030c1730c5d429428c5c21 /tools/perf/scripts/python/bin | |
| parent | 989f47c56e48d442d79497a25ed946d029c4dc53 (diff) | |
wifi: mac80211: recheck injected headers after removing FCS
Injecting a short frame with IEEE80211_RADIOTAP_F_FCS on a monitor
interface can pass a truncated 802.11 header to transmit handlers.
ieee80211_monitor_start_xmit() validates the linear 802.11 header before
parsing radiotap. Radiotap parsing then removes the four-byte FCS without
rechecking the remaining header length. Software encryption can subtract
the larger header length and pass the resulting negative length as an
unsigned size.
Recheck the required linear header length after pulling the radiotap
header and before handing the frame to the transmit path. Require at
least addr1, which the transmit path reads even for extension frames
whose header is shorter.
LLM assistance was used to find the bug and review.
Fixes: bddc0c411a45 ("mac80211: Fix NULL ptr deref for injected rate info")
Cc: stable@vger.kernel.org
Signed-off-by: Zhao Li <enderaoelyther@gmail.com>
Link: https://patch.msgid.link/20261028142101.11994-1-enderaoelyther@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
