Bug 2355431 (CVE-2023-52988)

Summary: CVE-2023-52988 kernel: ALSA: hda/via: Avoid potential array out-of-bound in add_secret_dac_path()
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dfreiber, drow, jburrell, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A vulnerability was found in the Linux kernel's ALSA subsystem in the `add_secret_dac_path()` function, where improper array handling can lead to out-of-bounds access. This occurs if the return value of the call to `snd_hda_get_connections()` returns an error code (a negative number), which is stored in the variable `nums` that is then used as the upper bound of a for loop used to access the `conn` structure. This issue could lead to undefined behavior or a memory crash due to invalid memory access.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2025-03-27 17:01:12 UTC
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.