]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: hdmi-codec: Fix OOB memory accesses
authorDmitry Osipenko <digetx@gmail.com>
Wed, 12 Jan 2022 19:50:39 +0000 (22:50 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jan 2022 15:59:19 +0000 (15:59 +0000)
commit4842659e07f4d632f54a0a7a308f328f14be84fd
treee69491266a7c1a6cf6e040a0f6f1afe8c2b0435d
parent1e3541e307aff90839329a48db075b93df2ed9f3
ASoC: hdmi-codec: Fix OOB memory accesses

Correct size of iec_status array by changing it to the size of status
array of the struct snd_aes_iec958. This fixes out-of-bounds slab
read accesses made by memcpy() of the hdmi-codec driver. This problem
is reported by KASAN.

Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20220112195039.1329-1-digetx@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/uapi/sound/asound.h
sound/soc/codecs/hdmi-codec.c