Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1069674imm; Wed, 1 Aug 2018 09:42:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdKtKJ7KzNSfwVVUkt23l7FOsYRkyv6qO8vlK+OZOLmY7E17a2BSktpwOmNlE4bjgwnJeEV X-Received: by 2002:a17:902:543:: with SMTP id 61-v6mr25594276plf.126.1533141729811; Wed, 01 Aug 2018 09:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533141729; cv=none; d=google.com; s=arc-20160816; b=WTy79SpVy19DUx8RfE5auQEFWzSnmaTFTFUcFpUEUWpEaF/Xs9u5jZL9rCOtMzSc8W zlLFxTSpMS5Ny8UxMFmt/SzUyQLQxroNFAeamaiIUFVdDCW5taOZCxH3IBaZdPBfk+Ff RS03SHb1k4Cdjq3ZxTHbMr2D57O4CwiqelcojVYkq3WuLZggnx3NDx996IdCgKOQm1GD f16smjoCxPc6APUeWY0N+I/7uh5Od5WFw4G/KmHBYTKNW8IF/i3UNMpr+Al5L0oLUQ0h ULTikPE8VB0cISGB9sQT86H6+tHCvtDRTVCrATqS9YxYTAlBTHUoaK6l3joWjId2xyE9 i2EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=35d7lKbuAZ9endhMKeZQR5ys9e1m/xpDKCONkB1fCnM=; b=RHNV9KXlSp9vKkHQh43aCXH6yH0Xuj48KWVxuiYckA/PG4qVMts8y1KEndOxkegIyP EhcOkerQP/o7sgFouOC5G+KRdqycEaA6Wz1EYMyu2fHlCqHK3gHT6HL9/XoFjRNE54Il PROtFD76n3h9H2J+wMDW7xn24IEERtesEj/R3jUCEov+Xwb9GpEpKLBIjeQr46GvCloM 6UPlaHc41uP6I1ohGandK+f6/sV3xOk5bRD2rnZAk4zMG5Es8+BHWJEbDRcmqzni+BWR wZYc7MfjrgLN5TyBMUIrHx52vwhLFJoODIGW7jsBBiLGLbP7ZdxPEQw6GWQlyHDnN5sI Z4aA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=Z98mM7qp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=android.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x32-v6si15134739pld.330.2018.08.01.09.41.55; Wed, 01 Aug 2018 09:42:09 -0700 (PDT) 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=@android.com header.s=20161025 header.b=Z98mM7qp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=android.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390257AbeHAS1k (ORCPT + 99 others); Wed, 1 Aug 2018 14:27:40 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:37361 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390171AbeHAS1k (ORCPT ); Wed, 1 Aug 2018 14:27:40 -0400 Received: by mail-pg1-f196.google.com with SMTP id n7-v6so11095134pgq.4 for ; Wed, 01 Aug 2018 09:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=35d7lKbuAZ9endhMKeZQR5ys9e1m/xpDKCONkB1fCnM=; b=Z98mM7qpo7HG1o1fRdbho1TtjnasaN6NdnyVq68GF4XvEVCsia1ONaBoR2UZp6cM1z XlnyD/UvIVjeoNQwCAaTO79Yrqi1jCTayUdybXAQJJbkWg1rUDXfx7ec77NDFpwyV4b6 5uds3n0hEnNapTLN/q8+yvekzs14SF5Is1mC2kk6F0CTszQYPYl5EBOLicong9RFO6el GlH+qHiYWhd3sdLQ818c6H6WCZkt9polY0plW4jFUmyDIlmaQwtI+pOr6rxi2i91qmUN PDp2v09uNTlqgB64MJhg0m7gwzDGHBeIDhRDAhPGRQMQ9yQ67JWv41Q4zhf5mQm/12j0 9o3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=35d7lKbuAZ9endhMKeZQR5ys9e1m/xpDKCONkB1fCnM=; b=RxsfJSfnSHbPou8rpAv41Nz99shuiRPB0kwttfypOLK3s9ek34nN631WRZ3WQa6Mnl BBOzB20Wy3pkoF8RdO7HHWdkQU4K0X/uzPd7wlFvkE10jhkD2GInwgdg2q5Z0eH2xiU8 QQJ1hSiRJsCoSHIGHDiZ/4c4QknHb4rIVxKZW8J4zi9n4rTGP8F01pNU6RBPHIg+iGrD F0EMm7Ftbc1cE3vTvQXOGnxLv7pEwK9LJ5FLHgyZQTUYlZNxM51z+Rieaze95vH0leBs b2AoyFYwnAKf7N/IRKOp3bVG+2BMPmLBdx31ySvPBAH0GMaunOkf79N8dXQCBTWer7Y8 +ETA== X-Gm-Message-State: AOUpUlFSp1Z590kTnRyTOED9wVCIwISu8ED8R5WzOvjBYK6vVs0YS48S KxlkgUrpGdXVBab+VH+ACQWyeA== X-Received: by 2002:a63:4a07:: with SMTP id x7-v6mr25581280pga.34.1533141665949; Wed, 01 Aug 2018 09:41:05 -0700 (PDT) Received: from nebulus.mtv.corp.google.com ([2620:0:1000:1611:8fc3:703d:7635:5997]) by smtp.googlemail.com with ESMTPSA id 84-v6sm44617430pfj.33.2018.08.01.09.41.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Aug 2018 09:41:05 -0700 (PDT) Subject: Re: [PATCH] HID: Bluetooth: hidp: buffer overflow in hidp_process_report To: Greg KH Cc: linux-kernel@vger.kernel.org, Marcel Holtmann , Johan Hedberg , "David S. Miller" , Kees Cook , Benjamin Tissoires , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, stable , kernel-team@android.com, Jiri Kosina References: <20180731220225.159741-1-salyzyn@android.com> <20180801163703.GA6994@kroah.com> From: Mark Salyzyn Message-ID: <6f6c3e63-0847-b0b6-98a3-7ad62fd2697c@android.com> Date: Wed, 1 Aug 2018 09:41:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180801163703.GA6994@kroah.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/01/2018 09:37 AM, Greg KH wrote: > On Tue, Jul 31, 2018 at 03:02:13PM -0700, Mark Salyzyn wrote: >> CVE-2018-9363 >> >> The buffer length is unsigned at all layers, but gets cast to int and >> checked in hidp_process_report and can lead to a buffer overflow. >> Switch len parameter to unsigned int to resolve issue. >> >> This affects 3.18 and newer kernels. >> >> Signed-off-by: Mark Salyzyn >> Fixes: a4b1b5877b514b276f0f31efe02388a9c2836728 ("HID: Bluetooth: hidp: make sure input buffers are big enough") >> Cc: Marcel Holtmann >> Cc: Johan Hedberg >> Cc: "David S. Miller" >> Cc: Kees Cook >> Cc: Benjamin Tissoires >> Cc: linux-bluetooth@vger.kernel.org >> Cc: netdev@vger.kernel.org >> Cc: linux-kernel@vger.kernel.org >> Cc: security@kernel.org >> Cc: kernel-team@android.com > Nit, you only need to bother security@ if you do not have a fix and need > to figure out one. Thanks, I thought anything with a CVE was to go there according to netdev FAQ (dropped security from response list). > Also, you forgot to cc: stable@vger.kernel.org to be included in older > kernel releases :( netdev FAQ said to _not_ copy stable, I am so confused ;-{ (added stable to response list b/c patch is now taken into bluetooth-next) > thanks, > > greg k-h