]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: cfg80211: validate PMSR measurement type data
authorZhao Li <enderaoelyther@gmail.com>
Fri, 12 Jun 2026 13:36:57 +0000 (21:36 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 6 Jul 2026 12:11:10 +0000 (14:11 +0200)
commit41aa973eb05922848dded26875c55ef982ac1c49
tree63a6d3e32f409ec3b89c94e94377baeb0c36ebcd
parent172f06023669f0a96d32511669ff45c600731380
wifi: cfg80211: validate PMSR measurement type data

PMSR request parsing accepts missing or duplicated measurement type
entries in NL80211_PMSR_REQ_ATTR_DATA.

Track whether one measurement type was already provided, reject a
second one immediately, and return an error if the request data block
contains no measurement type at all.

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/20260612133656.92900-2-enderaoelyther@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/pmsr.c