]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix possible out-of-bounds access
authorJohannes Berg <johannes.berg@intel.com>
Wed, 14 Sep 2016 07:23:51 +0000 (09:23 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 15 Sep 2016 14:46:16 +0000 (16:46 +0200)
commit855b9dc4e80abace52f8566dcc9d12b2c94fd5bc
tree83a76bdd049de1a15b56a6d9cd4243486d1d5a0e
parent0836bbfd0e6aad58e49a761b89eed8fbc43f1d5d
mac80211: fix possible out-of-bounds access

In the unlikely situation that the supplicant has negotiated
admission for the background AC (which it has no reason to as
it's not supposed to be requiring admission control to start
with, and we'd ignore such a requirement anyway), the loop
here may terminate with non_acm_ac == 4, which leads to an
array overrun.

Check this explicitly just for completeness.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c