Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4797721ybl; Tue, 4 Feb 2020 02:06:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwBbaxrwAmaEieJbdiE5pcrh1Dbp1kCsMFXEjI1vaGrH07BPXEm3nsp+SyjlszU8Fc5qMaT X-Received: by 2002:a05:6830:1db3:: with SMTP id z19mr22040514oti.292.1580810806478; Tue, 04 Feb 2020 02:06:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580810806; cv=none; d=google.com; s=arc-20160816; b=nhtXzBkrYI/iaqmWIza+EtqL4+HehvzslrzOLkW0uzDNx3k2P1rx9oY/D4bDZNByO3 PTZ0I4CktcsnrAYz6kzDHxU1PiwY2G2GnQ3vt2aTfH7FpEFYLflcp+5pWFd35rJqvmH9 W1A43eLU18xZ1/ylzuJaPGofA4ysmHGrzWtbaEiqSlj+HQFSFX2YPDy4lPoGp0UKshD8 U+M0S/xeE30HqqpdJfOU20Xx9uwJEwKapVS9CDmzwN+kyqsnQU0Ayzdhvljna9cTK8x3 nVI6RkTjhPTEr5GEIEtawB6vN/CF8nQgtaMM1rS4flWUQ1n6A9DbZmrF+146BgK2b04G nbJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=W7Sok36iCex8WkctasznxTkiUET3L+eBiv66eBEz5ng=; b=lPuHTvGqVI8jRoicng8hm/PpGOfJAj+MxvmQ4Z0TCoG1zRDet2E/eWIanF/il+xeZX iM58dhJoC9cw+QI3pgGJP2NOZ9XspcC6ZaVOoCw+EODZUPAew7Tyck/r7/5J/AKDNDS2 FKVTq89wearjlF7RugwH+yeR8DGGv/jtP9BAOTG0czP0g8WG1RivEwggU0tdPaHQAXmN Pu2ohqaPhplnVACsXv5j+Q6tJoTokCXIgugv2LFdWSAaDhFqaQbLf94tryB1DRzgvO02 40o5VmwTJdV+DOK7mVAZRQGxFJfFHYyBV0MSaZQVkDl5lZaeUE9e4E3caCM9TR3BdMHp g3eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ax84ru3D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 13si10132038oiy.28.2020.02.04.02.06.34; Tue, 04 Feb 2020 02:06:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@kernel.org header.s=default header.b=Ax84ru3D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727100AbgBDKFj (ORCPT + 99 others); Tue, 4 Feb 2020 05:05:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:40110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726506AbgBDKFi (ORCPT ); Tue, 4 Feb 2020 05:05:38 -0500 Received: from localhost (unknown [212.187.182.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9DDCA2192A; Tue, 4 Feb 2020 10:05:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580810738; bh=sVWw5io65CFud55R48cwmbeybCwucc32GqEz2clXunY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ax84ru3DK2QxnRTnncBb96xb4kYi7b9Nl02GW0bc1uYLwCNmBIZKvAejB5unuRIbP swUYQujkGap5VWVJB/accBIEXOfyiz0/V9EXV6CS0OpVIqIrjk8o/j6nyJfou35mT8 Ps/R7s0IwOQNnQffVe81oqnurYtgOu/hAz+uqYaw= Date: Tue, 4 Feb 2020 10:02:32 +0000 From: Greg KH To: Johan Hovold Cc: Dmitry Torokhov , stable@vger.kernel.org, linux-input@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Martin Kepplinger Subject: Re: [PATCH 1/7] Input: pegasus_notetaker: fix endpoint sanity check Message-ID: <20200204100232.GB1088789@kroah.com> References: <20191210113737.4016-1-johan@kernel.org> <20191210113737.4016-2-johan@kernel.org> <20200204082441.GD26725@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200204082441.GD26725@localhost> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 04, 2020 at 09:24:41AM +0100, Johan Hovold wrote: > On Tue, Dec 10, 2019 at 12:37:31PM +0100, Johan Hovold wrote: > > The driver was checking the number of endpoints of the first alternate > > setting instead of the current one, something which could be used by a > > malicious device (or USB descriptor fuzzer) to trigger a NULL-pointer > > dereference. > > > > Fixes: 1afca2b66aac ("Input: add Pegasus Notetaker tablet driver") > > Cc: stable # 4.8 > > Cc: Martin Kepplinger > > Signed-off-by: Johan Hovold > > Looks like the stable tag was removed when this one was applied, and > similar for patches 2, 4 and 7 of this series (commits 3111491fca4f, > a8eeb74df5a6, 6b32391ed675 upstream). > > While the last three are mostly an issue for the syzbot fuzzer, we have > started backporting those as well. > > This one (bcfcb7f9b480) is more clear cut as it can be used to trigger a > NULL-deref. > > I only noticed because Sasha picked up one of the other patches in the > series which was never intended for stable. Did I end up catching all of these properly? I've had to expand my search for some patches like this that do not explicitly have the cc: stable mark on them as not all subsystems do this well (if at all.) And there's also Sasha's work in digging up patches based on patterns of fixes, which also is needed because of this "problem". thanks, greg k-h