Home
last modified time | relevance | path

Searched hist:"2 e1976bb" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dfw.c2e1976bb Mon Jun 11 03:15:17 CDT 2018 Luca Coelho <luciano.coelho@intel.com> 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: 6996490501ed ("iwlwifi: mvm: add support for EWRD (Dynamic SAR) ACPI table")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2e1976bb Mon Jun 11 03:15:17 CDT 2018 Luca Coelho <luciano.coelho@intel.com> 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: 6996490501ed ("iwlwifi: mvm: add support for EWRD (Dynamic SAR) ACPI table")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>