1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/intel
Luca Coelho 2e1976bb75 iwlwifi: mvm: check for n_profiles validity in EWRD ACPI
When reading the profiles from the EWRD table in ACPI, we loop over
the data and set it into our internal table.  We use the number of
profiles specified in ACPI without checking its validity, so if the
ACPI table is corrupted and the number is larger than our array size,
we will try to make an out-of-bounds access.

Fix this by making sure the value specified in the ACPI table is
valid.

Fixes: 6996490501 ("iwlwifi: mvm: add support for EWRD (Dynamic SAR) ACPI table")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2018-10-06 10:25:42 +03:00
..
ipw2x00 ipw2x00: Remove unnecessary parentheses 2018-10-01 18:30:26 +03:00
iwlegacy iwlegacy: fix spelling mistake "acumulative" -> "accumulative" 2018-08-09 18:14:12 +03:00
iwlwifi iwlwifi: mvm: check for n_profiles validity in EWRD ACPI 2018-10-06 10:25:42 +03:00
Kconfig net/wireless: fix spaces and grammar copy/paste in vendor Kconfig help text 2018-03-13 18:52:25 +02:00
Makefile iwlwifi: move under intel vendor directory 2015-11-18 14:28:30 +02:00