]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: cfg80211: validate PMSR FTM preamble range
authorZhao Li <enderaoelyther@gmail.com>
Fri, 12 Jun 2026 13:37:04 +0000 (21:37 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Jul 2026 12:11:10 +0000 (14:11 +0200)
commit36230936468f0ba4930e94aef496fc229d4bb951
tree4abb0d82db0313117dad260278c7d83c4d62bb5b
parent41aa973eb05922848dded26875c55ef982ac1c49
wifi: cfg80211: validate PMSR FTM preamble range

PMSR FTM request parsing accepts preamble values outside the
enumerated nl80211 preamble range.

Reject out-of-range values before using them in the parser capability
bit test using the policy.

Fixes: 9bb7e0f24e7e7 ("cfg80211: add peer measurement with FTM initiator API")
Assisted-by: Codex:gpt-5.5
Assisted-by: Claude:claude-opus-4.8
Signed-off-by: Zhao Li <enderaoelyther@gmail.com>
Link: https://patch.msgid.link/20260612133703.93274-2-enderaoelyther@gmail.com
[drop unnecessary check]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c