nl80211: accept only HE capability elements with valid size
authorJohannes Berg <johannes.berg@intel.com>
Mon, 14 Feb 2022 16:29:23 +0000 (17:29 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 16 Feb 2022 14:41:06 +0000 (15:41 +0100)
commita3a20feb32a1c281ccac80dcf615480d3a79a6bf
treea2035372ee4fe3a11ff2dff7d7ca8ffa3df9c3a3
parentbd4e4d62d97c0fc150405ae2f700af51ab586e5b
nl80211: accept only HE capability elements with valid size

The kernel (driver code) should be able to assume that a station's
HE capabilities are not badly sized, so reject them if they are.

Link: https://lore.kernel.org/r/20220214172921.80b710d45cb7.Id57ce32f9538a40e36c620fabedbd2c73346ef56@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c