In the function wma_unified_power_debug_stats_event_handler() in Android for MSM, Firefox OS for MSM, and QRD Android before 2017-10-18, if the value param_buf->num_debug_register received from the FW command buffer is close to max of uint32, then the computation performed using this variable to calculate stats_registers_len may overflow to a smaller value leading to less than required memory allocated for power_stats_results and potentially a buffer overflow while copying the FW buffer to local buffer.
En la función wma_unified_power_debug_stats_event_handler() en Android for MSM, Firefox OS for MSM y QRD Android en versiones anteriores al 2017-10-18, si el valor param_buf->num_debug_register recibido del búfer del comando FW es cercano al valor máximo de uint32, entonces el procesamiento que utilice esta variable para calcular stats_registers_len podría desbordarse a un valor más pequeño, provocando que se asigne una memoria inferior a la requerida para power_stats_results y pudiendo originar un desbordamiento de búfer cuando se copia el búfer FW al búfer local.