]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: fix security bug in PN checking
authorSara Sharon <sara.sharon@intel.com>
Tue, 29 Mar 2016 07:56:57 +0000 (10:56 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 16 Feb 2018 13:34:31 +0000 (15:34 +0200)
commitf62109bb408be3bedea552bcbb4faa0fbd9872c5
tree5cc90fda197cdeb8c0d46528e3a61e8dd672fdc1
parent821169a71196121afe2b4cec8d4708c39cb97825
iwlwifi: mvm: fix security bug in PN checking

A previous patch allowed the same PN for packets originating from the
same AMSDU by copying PN only for the last packet in the series.

This however is bogus since we cannot assume the last frame will be
received on the same queue, and if it is received on a different ueue
we will end up not incrementing the PN and possibly let the next
packet to have the same PN and pass through.

Change the logic instead to driver explicitly indicate for the second
sub frame and on to be allowed to have the same PN as the first
subframe. Indicate it to mac80211 as well for the fallback queue.

Fixes: ab461b2bd482 ("iwlwifi: mvm: allow same PN for de-aggregated AMSDU")
Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c