Subject: CVE-2024-39473: ASoC: SOF: ipc4-topology: Fix input format query of process modules without base extension

From: Greg Kroah-Hartman <[email-masked]>

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

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

ASoC: SOF: ipc4-topology: Fix input format query of process modules without base extension

If a process module does not have base config extension then the same
format applies to all of it's inputs and the process->base_config_ext is
NULL, causing NULL dereference when specifically crafted topology and
sequences used.

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

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

	Issue introduced in 6.4 with commit 648fea128476 and fixed in 6.6.34 with commit e3ae00ee238b
	Issue introduced in 6.4 with commit 648fea128476 and fixed in 6.9.5 with commit 9e16f17a2a0e
	Issue introduced in 6.4 with commit 648fea128476 and fixed in 6.10 with commit ffa077b2f6ad

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-39473
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-topology.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/e3ae00ee238bce6cfa5ad935c921181c14d18fd6
	https://git.kernel.org/stable/c/9e16f17a2a0e97b43538b272e7071537a3e03368
	https://git.kernel.org/stable/c/ffa077b2f6ad124ec3d23fbddc5e4b0ff2647af8