CVE-2024-50103: ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could possibly return NULL pointer. NULL Pointer Dereference may be triggerred without addtional check.
Add a NULL check for the returned pointer.
The Linux kernel CVE team has assigned CVE-2024-50103 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10 with commit b5022a36d28f and fixed in 5.15.170 with commit a8e691fe1894 Issue introduced in 5.10 with commit b5022a36d28f and fixed in 6.1.115 with commit e19bf49e9033 Issue introduced in 5.10 with commit b5022a36d28f and fixed in 6.6.59 with commit 73cc3f905ca9 Issue introduced in 5.10 with commit b5022a36d28f and fixed in 6.11.6 with commit 1e235d02d803 Issue introduced in 5.10 with commit b5022a36d28f and fixed in 6.12-rc5 with commit 49da1463c9e3
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-50103
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/qcom/lpass-cpu.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/a8e691fe1894c8bdf815a6171ee22ae7da8b18aa https://git.kernel.org/stable/c/e19bf49e903337641fc230d430d49813e3199902 https://git.kernel.org/stable/c/73cc3f905ca9aa95694eea3dfa1acadc90686368 https://git.kernel.org/stable/c/1e235d02d803660777ec911a2c467ae41f8539f5 https://git.kernel.org/stable/c/49da1463c9e3d2082276c3e0e2a8b65a88711cd2