From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3C00CECAAA1 for ; Tue, 6 Sep 2022 05:16:19 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 4F336846; Tue, 6 Sep 2022 07:15:27 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 4F336846 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1662441377; bh=foMcVL16XY0uFwPWfNNP6LVagERzcIEL5yi2ndQ6/vo=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=B/VlfDXJ7hxFwVticgh2RBYIQrw8A4+/6WLLWBQjm7Fgu5na7nymV9OPH/U7uVJmn 5RoMg9bvVR+soV4kEgUTHDJiMrEPsorMP412QXtTWeJA2tomDtJvE2AosEmIJV+4MF xi5L/bDrz2Ik7fqr4rNG14cQ1qBAGCShizUmasZA= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id F2F5CF80249; Tue, 6 Sep 2022 07:15:26 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 93F4AF800E9; Tue, 6 Sep 2022 07:15:25 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id A0BA1F800E9 for ; Tue, 6 Sep 2022 07:15:22 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A0BA1F800E9 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="la3EXH4p"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="4UUwkQ/e" Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 544191F45B; Tue, 6 Sep 2022 05:15:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1662441322; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yWUO55Q1PJAdwLgSdbXaf03gIw+P26tewjALMzZ2oSE=; b=la3EXH4pbmOXG3fauz42PKD7x2OMtsWWInCvaOUP6nYLRtWc/WPXZn3bidCw+9UCzhEod1 QoirHwPjMmqBUCu3r/wg+wHIrFK9a15z02ddegp43hzBMEBazfxLngmcIyQZcYilSXE/r7 3p9E2bIzKs7lcI9scrzBYMj47sREZ88= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1662441322; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yWUO55Q1PJAdwLgSdbXaf03gIw+P26tewjALMzZ2oSE=; b=4UUwkQ/eZbCTf1umwp7aYRAQVR4CWFVmmXoaqvUZqiojLoNh26qCtJHlGSvpShxDNY19+N OqpIcXDIkgH4KJCA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 31C5813A6B; Tue, 6 Sep 2022 05:15:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id GJxuC2rXFmMRCQAAMHmgww (envelope-from ); Tue, 06 Sep 2022 05:15:22 +0000 Date: Tue, 06 Sep 2022 07:15:21 +0200 Message-ID: <87bkrthymu.wl-tiwai@suse.de> From: Takashi Iwai To: Dongxiang Ke Subject: Re: [PATCH] ALSA: usb-audio: Fix an out-of-bounds bug in __snd_usb_parse_audio_interface() In-Reply-To: <20220906024928.10951-1-kdx.glider@gmail.com> References: <20220906024928.10951-1-kdx.glider@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Cc: gregkh@linuxfoundation.org, alsa-devel@alsa-project.org, tiwai@suse.com X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Tue, 06 Sep 2022 04:49:28 +0200, Dongxiang Ke wrote: > > There may be a bad USB audio device with a USB ID of (0x04fa, 0x4201) and > the number of it's interfaces less than 4, an out-of-bounds read bug occurs > when parsing the interface descriptor for this device. > > Fix this by checking the number of interfaces. > > Signed-off-by: Dongxiang Ke Thanks, applied. Takashi