ASoC: SDCA: Ensure that Control Range is large enough for header
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 22 Jul 2026 10:35:00 +0000 (11:35 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 23 Jul 2026 20:10:16 +0000 (21:10 +0100)
commit951e921b039b793bef7050eaf5c5fb1a4a5341d1
tree3f7cb26ccfbaf05f71d6532218920f1413b03212
parent556d872e7c2a0b570c5b0974813847ef0d0cd637
ASoC: SDCA: Ensure that Control Range is large enough for header

When reading the Ranges structure from an SDCA Control, ensure that the
read data is large enough to encompass the required header before
accessing it.

Fixes: 64fb5af1d1bb ("ASoC: SDCA: Add parsing for Control range structures")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Link: https://patch.msgid.link/20260722103500.872714-5-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdca/sdca_functions.c