Skip to contentSkip to conversation

CVE-2026-46146: ALSA: usb-audio: Avoid potential endless loop in convert_chmap_v3()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 28

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-audio: Avoid potential endless loop in convert_chmap_v3()

The convert_chmap_v3() has a loop with its increment size of cs_desc->wLength, but we forgot to validate cs_desc->wLength itself, which may lead to potential endless loop by a malformed descriptor.

Add a proper size check to abort the loop for plugging the hole.

The Linux kernel CVE team has assigned CVE-2026-46146 to this issue.

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

	Issue introduced in 6.6.103 with commit 1034719fdefd26caeec0a44a868bb5a412c2c1a5 and fixed in 6.6.140 with commit e0e3dcf48189603f3865f1a0b799b3b42baae96d
	Issue introduced in 6.12.43 with commit ae17b3b5e753efc239421d186cd1ff06e5ac296e and fixed in 6.12.88 with commit 4e0ee232ebe3df04874125d7c7f3e6c25ea5483d
	Issue introduced in 6.17 with commit ecfd41166b72b67d3bdeb88d224ff445f6163869 and fixed in 6.18.30 with commit be09b47ed8677d76962e3240c145502e2ad9f3c8
	Issue introduced in 6.17 with commit ecfd41166b72b67d3bdeb88d224ff445f6163869 and fixed in 7.0.7 with commit fa5b19ce69067874b1413f3c2027563bae8c2cb3
	Issue introduced in 6.17 with commit ecfd41166b72b67d3bdeb88d224ff445f6163869 and fixed in 7.1-rc2 with commit 6e7247d8f5fefeceb0bb9cc80a5388a636b219cd
	Issue introduced in 5.4.297 with commit 799c06ad4c9c790c265e8b6b94947213f1fb389c
	Issue introduced in 5.10.241 with commit 786571b10b1ae6d90e1242848ce78ee7e1d493c4
	Issue introduced in 5.15.190 with commit 275e37532e8ebe25e8a4069b2d9f955bfd202a46
	Issue introduced in 6.1.149 with commit 47ab3d820cb0a502bd0074f83bb3cf7ab5d79902
	Issue introduced in 6.15.11 with commit dfdcbcde5c20df878178245d4449feada7d5b201
	Issue introduced in 6.16.2 with commit 7ef3fd250f84494fb2f7871f357808edaa1fc6ce

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-2026-46146

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/stream.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/e0e3dcf48189603f3865f1a0b799b3b42baae96d
	https://git.kernel.org/stable/c/4e0ee232ebe3df04874125d7c7f3e6c25ea5483d
	https://git.kernel.org/stable/c/be09b47ed8677d76962e3240c145502e2ad9f3c8
	https://git.kernel.org/stable/c/fa5b19ce69067874b1413f3c2027563bae8c2cb3
	https://git.kernel.org/stable/c/6e7247d8f5fefeceb0bb9cc80a5388a636b219cd