Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1652724ioo; Sun, 22 May 2022 23:06:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0nWqrjqQl6xN57Xbz+gSOFLMbSexCmtBvv9+BLygEdviF8Et8bw2Z4VNf2m0hkO870RZh X-Received: by 2002:a17:90b:3506:b0:1e0:51a1:a8ee with SMTP id ls6-20020a17090b350600b001e051a1a8eemr2918117pjb.112.1653285974194; Sun, 22 May 2022 23:06:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653285974; cv=none; d=google.com; s=arc-20160816; b=Su6RUiM1tvnlpZCK9BomfbJsiVuiU/jjMTAHhfdVbORrRmEuWVfP+ujb5RJ7qC9wou 9IanoD8eWQT4cFeoPoSW7oXSv3VK1LxMWDsDr1mwWz5mDN0yhT5M/Yroyymkp4keb5Q7 2wa6NSMkYxDxNUnLg9JhGWHZH5VlEOr+aWwnKQk5k19FvpdQi62efgNucQbEEdNj+/aH bTiWJnAeR9U4/FE3bsWTVf8G9iyMPR9wAOsOKGft352wp1z9eSp7d9Yr+pvaZj7S4D5X 0yk46JNoV0/Co9Eyay0qcC0Pcz3QDRPiUdLFPhJzdB4tsQyXZ/RVrymcRWl/DzuwwoyS 8t8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sCbUAtue5w3TVycw/TSHiIDZpqqjdB8X7RoGgUwII9k=; b=JMwFRGyUI7olzLMl3Aqge8S/RblymCFgOBgZiBs0Q2mfTJBVYY5e5dhkbweTAWsG/i 8dtNGzpzT4D456zdlbvR2UiGt08mOfVeLROic5yhZys8Qde/ALAc9HR49E1SSbprw6VN 1u+q0l57rgabDOS9JyKrEvXEUSeaczZA8KYQ1/42RiD0zl8vm/yT2s8nErjuMBGOo8c3 YkE28IFeLzX6cQ9fd4RHwxAu/FCrefhpU6IeN83jBjODYvdMwu/nq10bKYJL7N77x0e/ PpuLf6ioQsuq4S9wryiP4zTOvP8aQRhqiMekHoeVogtnIyd9mbVAXnqAmiKiYC/pmE/R zKsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YVBJxjDg; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u12-20020a170902a60c00b0015ecc946750si8366620plq.409.2022.05.22.23.06.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:06:14 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YVBJxjDg; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 798AE2CCA7; Sun, 22 May 2022 22:57:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242708AbiESRg6 (ORCPT + 99 others); Thu, 19 May 2022 13:36:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242656AbiESRgz (ORCPT ); Thu, 19 May 2022 13:36:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DBB060D8D; Thu, 19 May 2022 10:36:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 90543B8277B; Thu, 19 May 2022 17:36:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F0477C385AA; Thu, 19 May 2022 17:36:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652981810; bh=tomQ0qDGj4ULRGU5hAAEzRh9FfcnE05twNEaADV8Vc8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YVBJxjDge+rULCmuCAuXyO7D1T/FassimWpQdsrFKh88haTw4yMWD9uf/DxVGJdFQ pmLhEko51YkTA0RVT4rZdHBXdyUccfNps8k3t3fJ4mUAs9gjCcgn15HPsn3hQY7IeC 78sRSE1hbUDwTr7MjiaHIPKUZSwvVUUZGzccshJs= Date: Thu, 19 May 2022 19:36:47 +0200 From: Greg KH To: Dan Carpenter Cc: Denis Efremov , Larry.Finger@lwfinger.net, phil@philpotter.co.uk, straube.linux@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, stable Subject: Re: [PATCH] staging: r8188eu: prevent ->Ssid overflow in rtw_wx_set_scan() Message-ID: References: <20220518070052.108287-1-denis.e.efremov@oracle.com> <20220519171628.GW4009@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220519171628.GW4009@kadam> X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 19, 2022 at 08:16:28PM +0300, Dan Carpenter wrote: > On Thu, May 19, 2022 at 05:45:31PM +0200, Greg KH wrote: > > On Wed, May 18, 2022 at 11:00:52AM +0400, Denis Efremov wrote: > > > This code has a check to prevent read overflow but it needs another > > > check to prevent writing beyond the end of the ->Ssid[] array. > > > > > > Fixes: 2b42bd58b321 ("staging: r8188eu: introduce new os_dep dir for RTL8188eu driver") > > > Cc: stable > > > Signed-off-by: Denis Efremov > > > --- > > > > > > This patch is a copy of Dan's 74b6b20df8cf (CVE-2021-28660). > > > Drivers r8188eu and rtl8188eu share the same code. > > > > This does not apply to my tree at all. This file is not present anymore, > > what tree did you make it against? > > > > That's weird. It applies fine for me on today's linux-next. Ok, really wierd, it worked this time. I'll blame my email setup somehow, I was churning through lots of patches at once... thanks for checking. greg k-h