diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2022-07-12 15:23:55 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-07-12 13:45:01 +0100 |
commit | acacd9eefd0def5a83244d88e5483b5f38ee7287 (patch) | |
tree | 7681dedc476439e9d797eb4e38fe815f6ea71b3a /crypto/ecdh_helper.c | |
parent | 388fe2b8a3a0f597b2680e8f1ef5324e1db76ed2 (diff) |
ASoC: SOF: Intel: cnl: Do not process IPC reply before firmware boot
It is not yet clear, but it is possible to create a firmware so broken
that it will send a reply message before a FW_READY message (it is not
yet clear if FW_READY will arrive later).
Since the reply_data is allocated only after the FW_READY message, this
will lead to a NULL pointer dereference if not filtered out.
The issue was reported with IPC4 firmware but the same condition is present
for IPC3.
Reported-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220712122357.31282-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'crypto/ecdh_helper.c')
0 files changed, 0 insertions, 0 deletions