Skip to contentSkip to conversation

CVE-2024-57880: ASoC: Intel: sof_sdw: Add space for a terminator into DAIs array

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jan 11, 2025

lore
Share & tools
lore
#0 lore raw

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

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

ASoC: Intel: sof_sdw: Add space for a terminator into DAIs array

The code uses the initialised member of the asoc_sdw_dailink struct to determine if a member of the array is in use. However in the case the array is completely full this will lead to an access 1 past the end of the array, expand the array by one entry to include a space for a terminator.

The Linux kernel CVE team has assigned CVE-2024-57880 to this issue.

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

	Issue introduced in 6.10 with commit 27fd36aefa0013bea1cf6948e2e825e9b8cff97a and fixed in 6.12.6 with commit b21a849764a4111b0bc14a5ffe987a0582419de2
	Issue introduced in 6.10 with commit 27fd36aefa0013bea1cf6948e2e825e9b8cff97a and fixed in 6.13-rc3 with commit 255cc582e6e16191a20d54bcdbca6c91d3e90c5e

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-2024-57880

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/soc/intel/boards/sof_sdw.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/b21a849764a4111b0bc14a5ffe987a0582419de2
	https://git.kernel.org/stable/c/255cc582e6e16191a20d54bcdbca6c91d3e90c5e