Skip to contentSkip to conversation

CVE-2025-38629: ALSA: usb: scarlett2: Fix missing NULL check

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 22, 2025

lore
Share & tools
lore
#0 lore raw

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

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

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

ALSA: usb: scarlett2: Fix missing NULL check

scarlett2_input_select_ctl_info() sets up the string arrays allocated via kasprintf(), but it misses NULL checks, which may lead to NULL dereference Oops. Let's add the proper NULL check.

The Linux kernel CVE team has assigned CVE-2025-38629 to this issue.

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

	Issue introduced in 6.13 with commit 8eba063b5b2b498ddd01ea6f29fc9b12368c3d53 and fixed in 6.15.10 with commit d558db85920b124bac36f8a7ddc5de0aa7491bdd
	Issue introduced in 6.13 with commit 8eba063b5b2b498ddd01ea6f29fc9b12368c3d53 and fixed in 6.16.1 with commit 2c735fcaee81ad8056960659dc9dc460891e76b0
	Issue introduced in 6.13 with commit 8eba063b5b2b498ddd01ea6f29fc9b12368c3d53 and fixed in 6.17-rc1 with commit df485a4b2b3ee5b35c80f990beb554e38a8a5fb1

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-2025-38629

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/usb/mixer_scarlett2.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/d558db85920b124bac36f8a7ddc5de0aa7491bdd
	https://git.kernel.org/stable/c/2c735fcaee81ad8056960659dc9dc460891e76b0
	https://git.kernel.org/stable/c/df485a4b2b3ee5b35c80f990beb554e38a8a5fb1