From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7F042D9ECB; Mon, 23 Mar 2026 14:56:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774277784; cv=none; b=JSK6wZyGzwTCgSx68Zrqqq77RKxdKgFiCjXKW0trvPVmIcBDg7YcW8p2+AssGpWSape70RKtfw2e77Rfv2d4Ep+geIS+l8zPEjoXZhQRMZqDdUKzx+610zRs2kOajk+e4Yh9MdwYME8DyoqTUe1la4Qld4hF41+8v0nchksYruI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774277784; c=relaxed/simple; bh=6Zi5728At8NC5tp5Bf/e2xgfxwwWfDlYQ2p6y32i2Ng=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mzPDMFwInndDV8g4p+dai5X5emgUuF8WGqb68OGiKuQOYqYoFK6ftBCeyZ8ksgNVlnFdCefmXMdfZcqfIkQ4w3V/UOHjy3+ZlSqI7nk6/f7LoqLdC2SWixg7jnWTFbh4YM5qVvBkQgEi2wVplxDtS6hsy98e0uVHseesW7r4mNo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NoX8ZIba; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NoX8ZIba" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C2E0C4CEF7; Mon, 23 Mar 2026 14:56:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774277784; bh=6Zi5728At8NC5tp5Bf/e2xgfxwwWfDlYQ2p6y32i2Ng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NoX8ZIbae5VaTgQwac2aRacSVEi0Fm7VYO2gEcIOdKVrEVSIYe4ENtpGM9oNynJ3k 9MXtFu2xQye8kgngB2wJNmq93Z/3cOrlVQD6ICEobezCdwu9YHh+DHDXRQwRHSIPQL vAoos4yYLqr5ONJcMoTs1+bS+VIXf9uozHpU3n8s= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jun Seo , Takashi Iwai Subject: [PATCH 6.6 103/567] ALSA: usb-audio: Use correct version for UAC3 header validation Date: Mon, 23 Mar 2026 14:40:23 +0100 Message-ID: <20260323134536.373552601@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260323134533.749096647@linuxfoundation.org> References: <20260323134533.749096647@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jun Seo commit 54f9d645a5453d0bfece0c465d34aaf072ea99fa upstream. The entry of the validators table for UAC3 AC header descriptor is defined with the wrong protocol version UAC_VERSION_2, while it should have been UAC_VERSION_3. This results in the validator never matching for actual UAC3 devices (protocol == UAC_VERSION_3), causing their header descriptors to bypass validation entirely. A malicious USB device presenting a truncated UAC3 header could exploit this to cause out-of-bounds reads when the driver later accesses unvalidated descriptor fields. The bug was introduced in the same commit as the recently fixed UAC3 feature unit sub-type typo, and appears to be from the same copy-paste error when the UAC3 section was created from the UAC2 section. Fixes: 57f8770620e9 ("ALSA: usb-audio: More validations of descriptor units") Cc: Signed-off-by: Jun Seo Link: https://patch.msgid.link/20260226010820.36529-1-jun.seo.93@proton.me Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/usb/validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/usb/validate.c +++ b/sound/usb/validate.c @@ -281,7 +281,7 @@ static const struct usb_desc_validator a /* UAC_VERSION_2, UAC2_SAMPLE_RATE_CONVERTER: not implemented yet */ /* UAC3 */ - FIXED(UAC_VERSION_2, UAC_HEADER, struct uac3_ac_header_descriptor), + FIXED(UAC_VERSION_3, UAC_HEADER, struct uac3_ac_header_descriptor), FIXED(UAC_VERSION_3, UAC_INPUT_TERMINAL, struct uac3_input_terminal_descriptor), FIXED(UAC_VERSION_3, UAC_OUTPUT_TERMINAL,