Skip to contentSkip to conversation

CVE-2023-52987: ASoC: SOF: ipc4-mtrace: prevent underflow in sof_ipc4_priority_mask_dfs_write()

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:

ASoC: SOF: ipc4-mtrace: prevent underflow in sof_ipc4_priority_mask_dfs_write()

The "id" comes from the user. Change the type to unsigned to prevent an array underflow.

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

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

	Issue introduced in 6.1 with commit f4ea22f7aa7536560097d765be56445933d07e0d and fixed in 6.1.11 with commit d52f34784e4e2f6e77671a9f104d8a69a3b5d24c
	Issue introduced in 6.1 with commit f4ea22f7aa7536560097d765be56445933d07e0d and fixed in 6.2 with commit ea57680af47587397f5005d7758022441ed66d54

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-52987

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/sof/ipc4-mtrace.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/d52f34784e4e2f6e77671a9f104d8a69a3b5d24c
	https://git.kernel.org/stable/c/ea57680af47587397f5005d7758022441ed66d54