Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2839336ybl; Sun, 1 Sep 2019 01:06:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqybQtEKUHKWB0HOXpzeniHRLwtZ6Dv7Ofk5RbmxlWec7kAq5lSOu1S3WbCoDWScBRYyKDHJ X-Received: by 2002:a62:7912:: with SMTP id u18mr29485718pfc.254.1567325212858; Sun, 01 Sep 2019 01:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567325212; cv=none; d=google.com; s=arc-20160816; b=TdqaS5yjPdZ4oAdljMkqL8UhIvtdXTSIfl1pBnT54HEAD2bgGgjHqGEUHUJQ/irrQy h02LxhVm7bgXGEqCAJuBADqFPwdWFHfhj6f0wNQ/Nnrd/iXvk7d+lOHE8ML6u5lIr2KP J4womV2HC5Aq6PiPhRrLy+2uSuZXJLL1duuD7QEwr+vWyHCrkT7+JRN6nVIugkQ6esgd XaAvISd77O5HPVamV5ojdFSZq/bhYCT1ciO1RtEUeW6CYriRVx3q55Fdey5gvOX2Wz3c hmgpRZK+eEUG58YNbtFh5uLYP5lEctig/NIMjdu5A0wkEmU1vhMpQdIBs0H4zOp3jKiK uTzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature:dkim-signature; bh=3J7BUIcRwTLDuVUW/X14U2tZ4PDsbL+vsh0A4/od+ow=; b=nxpWWFFij7iXcC5J9EuraRjGpsl8+rBCQxs8Hvr8+LnSiNsVlcvXp6nXkliag/SUOi D4z0YIDg3yyr8ibrRXtofIY5KeKEGoO//BiIupQ0M6/T2vdiLvQeZ72SDILO+26CKdl8 cbezchHU1WGi9ZwukwyTMM+RCZS3Lq+0w1nO8Tg7WZKLey1eF8jh47As6KVnNhNck52k 5EBFEi9e7VurTtjTgNCt4wixot43Yca7n/S4OIqGoNFVTmm1wiaiw9Ku5bMPAejUT/CX 4X2RjWtVfIqreUXvKTN8ZXqJjkhGSwUeGVxsB+6QZPp0WkA9DXrffBeSrMkmzmSMXZYL qbIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=fD8dwNEX; dkim=pass header.i=@codeaurora.org header.s=default header.b=fD8dwNEX; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w21si8595773pgh.316.2019.09.01.01.06.38; Sun, 01 Sep 2019 01:06:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=fD8dwNEX; dkim=pass header.i=@codeaurora.org header.s=default header.b=fD8dwNEX; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728845AbfIAIGN (ORCPT + 99 others); Sun, 1 Sep 2019 04:06:13 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:55778 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728807AbfIAIGN (ORCPT ); Sun, 1 Sep 2019 04:06:13 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id CBACA607C3; Sun, 1 Sep 2019 08:06:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1567325171; bh=0di5kjor58mU5K1O24hMMYng4gdlXWeKha9jYaqTdTA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=fD8dwNEX2JuXvfAO577IcFn3gC9Rl2D10xiWFBqIDACcvN74JtlVKjzAZ19OfYCVC 4JE2HDvKBzDCpC7xYBDF3gqXaMgxSp6QQzSkpGRZHCGDBRaRyNSbwq+N3tGmVdw4DZ mH/rgg5ZYO521IYKKU5h5gjmrs6cYC/ByPs93qVc= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 85C4660159; Sun, 1 Sep 2019 08:06:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1567325171; bh=0di5kjor58mU5K1O24hMMYng4gdlXWeKha9jYaqTdTA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=fD8dwNEX2JuXvfAO577IcFn3gC9Rl2D10xiWFBqIDACcvN74JtlVKjzAZ19OfYCVC 4JE2HDvKBzDCpC7xYBDF3gqXaMgxSp6QQzSkpGRZHCGDBRaRyNSbwq+N3tGmVdw4DZ mH/rgg5ZYO521IYKKU5h5gjmrs6cYC/ByPs93qVc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 85C4660159 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Guenter Roeck Cc: Hui Peng , davem@davemloft.net, Mathias Payer , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] Fix a NULL-ptr-deref bug in ath10k_usb_alloc_urb_from_pipe References: <20190804003101.11541-1-benquike@gmail.com> <20190831213139.GA32507@roeck-us.net> Date: Sun, 01 Sep 2019 11:06:05 +0300 In-Reply-To: <20190831213139.GA32507@roeck-us.net> (Guenter Roeck's message of "Sat, 31 Aug 2019 14:31:39 -0700") Message-ID: <87ftlgqw42.fsf@kamboji.qca.qualcomm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Guenter Roeck writes: > Hi, > > On Sat, Aug 03, 2019 at 08:31:01PM -0400, Hui Peng wrote: >> The `ar_usb` field of `ath10k_usb_pipe_usb_pipe` objects >> are initialized to point to the containing `ath10k_usb` object >> according to endpoint descriptors read from the device side, as shown >> below in `ath10k_usb_setup_pipe_resources`: >> >> for (i = 0; i < iface_desc->desc.bNumEndpoints; ++i) { >> endpoint = &iface_desc->endpoint[i].desc; >> >> // get the address from endpoint descriptor >> pipe_num = ath10k_usb_get_logical_pipe_num(ar_usb, >> endpoint->bEndpointAddress, >> &urbcount); >> ...... >> // select the pipe object >> pipe = &ar_usb->pipes[pipe_num]; >> >> // initialize the ar_usb field >> pipe->ar_usb = ar_usb; >> } >> >> The driver assumes that the addresses reported in endpoint >> descriptors from device side to be complete. If a device is >> malicious and does not report complete addresses, it may trigger >> NULL-ptr-deref `ath10k_usb_alloc_urb_from_pipe` and >> `ath10k_usb_free_urb_to_pipe`. >> >> This patch fixes the bug by preventing potential NULL-ptr-deref. >> >> Signed-off-by: Hui Peng >> Reported-by: Hui Peng >> Reported-by: Mathias Payer > > This patch fixes CVE-2019-15099, which has CVSS scores of 7.5 (CVSS 3.0) > and 7.8 (CVSS 2.0). Yet, I don't find it in the upstream kernel or in Linux > next. > > Is the patch going to be applied to the upstream kernel anytime soon ? Same answer as in patch 1: https://patchwork.kernel.org/patch/11074655/ -- https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches