linux/sound/hda
Denis Arefev 343fa9800c ALSA: hda: cs35l41: Fix NULL pointer dereference in cs35l41_hda_read_acpi()
commit c34b04cc61 upstream.

The acpi_get_first_physical_node() function can return NULL, in which
case the get_device() function also returns NULL, but this value is
then dereferenced without checking,so add a check to prevent a crash.

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

Fixes: 7b2f3eb492 ("ALSA: hda: cs35l41: Add support for CS35L41 in HDA systems")
Cc: stable@vger.kernel.org
Signed-off-by: Denis Arefev <arefev@swemel.ru>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20251202101338.11437-1-arefev@swemel.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2025-12-18 14:03:42 +01:00
..
codecs ALSA: hda: cs35l41: Fix NULL pointer dereference in cs35l41_hda_read_acpi() 2025-12-18 14:03:42 +01:00
common ALSA: hda/common: Use guard() for spinlocks 2025-08-29 11:52:15 +02:00
controllers ALSA: hda/intel: Add MSI X870E Tomahawk to denylist 2025-10-11 08:29:10 +02:00
core Merge branch 'for-linus' into for-next 2025-09-28 08:34:58 +02:00
Kconfig ALSA: hda: Move codec drivers into sound/hda/codecs directory 2025-07-11 09:55:37 +02:00
Makefile ALSA: hda: Drop old codec binding method 2025-07-11 09:55:38 +02:00