Skip to contentSkip to conversation

CVE-2024-50160: ALSA: hda/cs8409: Fix possible NULL dereference

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 7, 2024

lore
Share & tools
lore
#0 lore raw

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

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

ALSA: hda/cs8409: Fix possible NULL dereference

If snd_hda_gen_add_kctl fails to allocate memory and returns NULL, then NULL pointer dereference will occur in the next line.

Since dolphin_fixups function is a hda_fixup function which is not supposed to return any errors, add simple check before dereference, ignore the fail.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

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

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

	Issue introduced in 5.15 with commit 20e507724113 and fixed in 5.15.170 with commit 4e19aca8db69
	Issue introduced in 5.15 with commit 20e507724113 and fixed in 6.1.115 with commit 21dc97d5086f
	Issue introduced in 5.15 with commit 20e507724113 and fixed in 6.6.59 with commit 8971fd61210d
	Issue introduced in 5.15 with commit 20e507724113 and fixed in 6.11.6 with commit a5dd71a8b849
	Issue introduced in 5.15 with commit 20e507724113 and fixed in 6.12-rc4 with commit c9bd4a82b4ed

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

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/pci/hda/patch_cs8409.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/4e19aca8db696b6ba4dd8c73657405e15c695f14
	https://git.kernel.org/stable/c/21dc97d5086fdabbe278786bb0a03cbf2e26c793
	https://git.kernel.org/stable/c/8971fd61210d75fd2af225621cd2fcc87eb1847c
	https://git.kernel.org/stable/c/a5dd71a8b849626f42d08a5e73d382f2016fc7bc
	https://git.kernel.org/stable/c/c9bd4a82b4ed32c6d1c90500a52063e6e341517f