Skip to contentSkip to conversation

CVE-2026-46018: ALSA: usb-audio: stop parsing UAC2 rates at MAX_NR_RATES

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

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: stop parsing UAC2 rates at MAX_NR_RATES

parse_uac2_sample_rate_range() caps the number of enumerated rates at MAX_NR_RATES, but it only breaks out of the current rate loop. A malformed UAC2 RANGE response with additional triplets continues parsing the remaining triplets and repeatedly prints "invalid uac2 rates" while probe still holds register_mutex.

Stop the whole parse once the cap is reached and return the number of rates collected so far.

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

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

	Issue introduced in 3.3 with commit 4fa0e81b83503900be277e6273a79651b375e288 and fixed in 6.6.140 with commit ab5ba9fd138758ddc50222264ff246b31e397abf
	Issue introduced in 3.3 with commit 4fa0e81b83503900be277e6273a79651b375e288 and fixed in 6.12.86 with commit ba036305323814ec1f8655313b2fa6a0f7048716
	Issue introduced in 3.3 with commit 4fa0e81b83503900be277e6273a79651b375e288 and fixed in 6.18.27 with commit 4d7893a137eadb6163ea4298bf67d74b811d76ef
	Issue introduced in 3.3 with commit 4fa0e81b83503900be277e6273a79651b375e288 and fixed in 7.0.4 with commit a0b78639ef09b2e77974a3de3b1c07f6de3c5e56
	Issue introduced in 3.3 with commit 4fa0e81b83503900be277e6273a79651b375e288 and fixed in 7.1-rc1 with commit 3c318f97dcc50b2e0556a1813bd6958678e881fd
	Issue introduced in 3.0.81 with commit 44f059fb742aac78cffdab5e0d8fe0c9910c1ded
	Issue introduced in 3.2.47 with commit c25a53781f61c78bf2a2fa308bbd35b42ba346f6

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

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/format.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/ab5ba9fd138758ddc50222264ff246b31e397abf
	https://git.kernel.org/stable/c/ba036305323814ec1f8655313b2fa6a0f7048716
	https://git.kernel.org/stable/c/4d7893a137eadb6163ea4298bf67d74b811d76ef
	https://git.kernel.org/stable/c/a0b78639ef09b2e77974a3de3b1c07f6de3c5e56
	https://git.kernel.org/stable/c/3c318f97dcc50b2e0556a1813bd6958678e881fd