Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5844368rwb; Tue, 1 Aug 2023 08:38:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlEauL2/ht3xe3eyE0bAHxFe6YS3tCqK/oxIOvMWna4/INluzO7TWQcZYbFXFXYLK4vQvPFo X-Received: by 2002:a17:907:7208:b0:99b:4b6d:f2bf with SMTP id dr8-20020a170907720800b0099b4b6df2bfmr3703491ejc.10.1690904284557; Tue, 01 Aug 2023 08:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690904284; cv=none; d=google.com; s=arc-20160816; b=BDj+bLnvxTJWBPiXxApj9HNVaMjzKdflixIsr/FQ9xeRTiz3IWE0W821mxz1lUWSwo RsAc5kYZ6GmAkLkaawvcLQkQv8hArM+iE970ydHolmBmSB8SNALbWu+JI8aTWrKR2GLU lEQisjT0c8TV2YnfFjA05lHJPy0XYEiKfmRAkgyx8H0YraJNAXl3IlXwQGK0KRITW8iE s0LQOtYdhAuzF1VAO4UAWLiPziOpHb2JTAEDw0XPC8pEF3PQqpoa3KO7Rf1p1zVHkzZK 1fBeHeM1oO18jVRiI3vZ4zqhplQKiMQszSvZWJa3gKdjebR3nWLyQ2J9Ws0Ky/Ff63+t nHOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=GA74YM2+0GQCx54Qk0qUHnUnH49/fEF1MaLtANNjdd8=; fh=OdG4D0LLDx2ArJgKZcwmU5gJVow2pdPs3hGQO8SbcdU=; b=tRPHwI+IysXgMY4fkVqHMU/ZsuhBx3Oc5bgzm34H+nRO4pdLz6MgkZem81tdMGYQOz +zUyOlkQgNrN1GSVDZxakFSJ0SMfxS6W7AmNKoB1GycqYAezY8v4JFp07wh0Qj9zOpnz F1AztenN9x/NC7v+ElwqSNxjXCorK0MkZWw/Tx9o5wgi5aE9f4W+5bp1raYRCFD5u9/Y +PcPkDef12Bdd7JeKHQfRQst9SSGiNTAg7iLHuZCi+jFp3DOUMJrphTCPY+iC+GuvTP0 0j++mAozHCYPYJSbJPu+RGzX6pslVGkO4+KqR5vlOY/rkphy133O63bEsmRUIVZUJ9An wMYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JLMVXFpe; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t19-20020a1709064f1300b009936f6d7270si9116349eju.166.2023.08.01.08.37.49; Tue, 01 Aug 2023 08:38:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JLMVXFpe; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234822AbjHAOri (ORCPT + 59 others); Tue, 1 Aug 2023 10:47:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234180AbjHAOri (ORCPT ); Tue, 1 Aug 2023 10:47:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F85B1BCF for ; Tue, 1 Aug 2023 07:47:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E21F6615D3 for ; Tue, 1 Aug 2023 14:47:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 072D2C433C8; Tue, 1 Aug 2023 14:47:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690901256; bh=A6d4S4Wf0mfkNxaD8pMeDfYCvT82PGNAf+8GL8JCK9o=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=JLMVXFpeVkQTRdfh5syOy/aSgmoS2G5FrKdmEGp58UjyJadahjTUGwlA3gcC1/FNH Drc41jqOb2Pfxs4ZTLiv1lqmWj5LRn8/ywS/ZywbgsQiTHIwn4uVFs56PVYnGMv491 q75ytQ+ZVWBTGZtfOu0sbzJ1ufidQVvKzPIkHKneabf5GUm3aufbLMHzmlHj4XompQ 4mvXv4T5Xs9GxXSkCbbfUkIeXVoxQLrs1QdJ/0QKWvXyJEvkN+j4LvsUZAXW6Rd6mr 28GuZmZXe5iMBxHpC4ZqYKTwWAahrptX5Du63/kcathxLx5KQx1yNgEEPIHBGogUZ9 3h+oxMEvwepdQ== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v7] wifi: mwifiex: Fix OOB and integer underflow when rx packets From: Kalle Valo In-Reply-To: <20230723070741.1544662-1-pinkperfect2021@gmail.com> References: <20230723070741.1544662-1-pinkperfect2021@gmail.com> To: Polaris Pi Cc: matthewmwang@chromium.org, briannorris@chromium.org, kuba@kernel.org, linux-wireless@vger.kernel.org, Polaris Pi User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <169090125328.212423.6884831819316913937.kvalo@kernel.org> Date: Tue, 1 Aug 2023 14:47:34 +0000 (UTC) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-wireless@vger.kernel.org Polaris Pi wrote: > Make sure mwifiex_process_mgmt_packet, > mwifiex_process_sta_rx_packet and mwifiex_process_uap_rx_packet, > mwifiex_uap_queue_bridged_pkt and mwifiex_process_rx_packet > not out-of-bounds access the skb->data buffer. > > Fixes: 2dbaf751b1de ("mwifiex: report received management frames to cfg80211") > Signed-off-by: Polaris Pi > Reviewed-by: Matthew Wang > Reviewed-by: Brian Norris Patch applied to wireless-next.git, thanks. 119585281617 wifi: mwifiex: Fix OOB and integer underflow when rx packets -- https://patchwork.kernel.org/project/linux-wireless/patch/20230723070741.1544662-1-pinkperfect2021@gmail.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches