Commit 8eecc006 authored by Artemii Karasev's avatar Artemii Karasev Committed by zhaoxiaoqiang11
Browse files

ALSA: hda/via: Avoid potential array out-of-bound in add_secret_dac_path()

stable inclusion
from stable-v5.10.168
commit 2b557fa635e7487f638c0f030c305870839eeda2
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7URR4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2b557fa635e7487f638c0f030c305870839eeda2



----------------------------------------------------

[ Upstream commit b9cee506 ]

snd_hda_get_connections() can return a negative error code.
It may lead to accessing 'conn' array at a negative index.

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

Signed-off-by: default avatarArtemii Karasev <karasev@ispras.ru>
Fixes: 30b45033 ("ALSA: hda - Expose secret DAC-AA connection of some VIA codecs")
Link: https://lore.kernel.org/r/20230119082259.3634-1-karasev@ispras.ru


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
parent d3b5c638
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment