]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: emux: Avoid potential array out-of-bound in snd_emux_xg_control()
authorArtemii Karasev <karasev@ispras.ru>
Tue, 7 Feb 2023 13:20:26 +0000 (18:20 +0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2023 18:11:41 +0000 (19:11 +0100)
commit9d26f571df4de4b8991aeb30c4ccc7b0a30f0ec7
treea34469d3f5c92181bd132c6716b09e984755340f
parentab9b01a7acd56a21a64cd881e61c7a5369bd4602
ALSA: emux: Avoid potential array out-of-bound in snd_emux_xg_control()

commit 6a32425f953b955b4ff82f339d01df0b713caa5d upstream.

snd_emux_xg_control() can be called with an argument 'param' greater
than size of 'control' array. It may lead to accessing 'control'
array at a wrong index.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Artemii Karasev <karasev@ispras.ru>
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20230207132026.2870-1-karasev@ispras.ru
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/synth/emux/emux_nrpn.c