Skip to contentSkip to conversation

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

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Mar 27, 2025

lore
Share & tools
lore
#0 lore raw

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

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

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.

The Linux kernel CVE team has assigned CVE-2023-52988 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.1 with commit 30b4503378c976cf66201a1e81820519f6bd79ac and fixed in 4.14.306 with commit 437e50ef6290ac835d526d0e45f466a0aa69ba1b
	Issue introduced in 3.1 with commit 30b4503378c976cf66201a1e81820519f6bd79ac and fixed in 4.19.273 with commit 6e1f586ddec48d71016b81acf68ba9f49ca54db8
	Issue introduced in 3.1 with commit 30b4503378c976cf66201a1e81820519f6bd79ac and fixed in 5.4.232 with commit d6870f3800dbb212ae8433183ee82f566d067c6c
	Issue introduced in 3.1 with commit 30b4503378c976cf66201a1e81820519f6bd79ac and fixed in 5.10.168 with commit 2b557fa635e7487f638c0f030c305870839eeda2
	Issue introduced in 3.1 with commit 30b4503378c976cf66201a1e81820519f6bd79ac and fixed in 5.15.93 with commit 1b9256c96220bcdba287eeeb90e7c910c77f8c46
	Issue introduced in 3.1 with commit 30b4503378c976cf66201a1e81820519f6bd79ac and fixed in 6.1.11 with commit f011360ad234a07cb6fbcc720fff646a93a9f0d6
	Issue introduced in 3.1 with commit 30b4503378c976cf66201a1e81820519f6bd79ac and fixed in 6.2 with commit b9cee506da2b7920b5ea02ccd8e78a907d0ee7aa

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2023-52988

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
sound/pci/hda/patch_via.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/437e50ef6290ac835d526d0e45f466a0aa69ba1b
	https://git.kernel.org/stable/c/6e1f586ddec48d71016b81acf68ba9f49ca54db8
	https://git.kernel.org/stable/c/d6870f3800dbb212ae8433183ee82f566d067c6c
	https://git.kernel.org/stable/c/2b557fa635e7487f638c0f030c305870839eeda2
	https://git.kernel.org/stable/c/1b9256c96220bcdba287eeeb90e7c910c77f8c46
	https://git.kernel.org/stable/c/f011360ad234a07cb6fbcc720fff646a93a9f0d6
	https://git.kernel.org/stable/c/b9cee506da2b7920b5ea02ccd8e78a907d0ee7aa