ASoC: mediatek: sof-common: Add NULL check for normal_link string
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ASoC: mediatek: sof-common: Add NULL check for normal_link string
It's not granted that all entries of struct sof_conn_stream declare a `normal_link` (a non-SOF, direct link) string, and this is the case for SoCs that support only SOF paths (hence do not support both direct and SOF usecases).
For example, in the case of MT8188 there is no normal_link string in any of the sof_conn_stream entries and there will be more drivers doing that in the future.
To avoid possible NULL pointer KPs, add a NULL check for `normal_link`.
From the CVE record · Linux
The Linux kernel’s MediaTek ASoC sof-common code can dereference a NULL `normal_link` string on SoCs that support only SOF paths, potentially causing a kernel crash. The input does not establish whether an attacker can trigger the crash or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with MediaTek ASoC sof-common support should check their deployments; affected versions are not specified.