diff options
author | Johannes Berg <johannes.berg@intel.com> | 2021-04-08 15:31:50 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2021-04-08 16:32:48 +0300 |
commit | db878e27a98106a70315d264cc92230d84009e72 (patch) | |
tree | 8603111f6c5337e61dec142d0af0d225477e6686 /sound/soc/soc-jack.c | |
parent | d6843d1ee283137723b4a8c76244607ce6db1951 (diff) | |
download | linux-db878e27a98106a70315d264cc92230d84009e72.tar.xz |
mac80211: bail out if cipher schemes are invalid
If any of the cipher schemes specified by the driver are invalid, bail
out and fail the registration rather than just warning. Otherwise, we
might later crash when we try to use the invalid cipher scheme, e.g.
if the hdr_len is (significantly) less than the pn_offs + pn_len, we'd
have an out-of-bounds access in RX validation.
Fixes: 2475b1cc0d52 ("mac80211: add generic cipher scheme support")
Link: https://lore.kernel.org/r/20210408143149.38a3a13a1b19.I6b7f5790fa0958ed8049cf02ac2a535c61e9bc96@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'sound/soc/soc-jack.c')
0 files changed, 0 insertions, 0 deletions