Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74425C43217 for ; Fri, 14 Oct 2022 16:39:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229911AbiJNQj3 (ORCPT ); Fri, 14 Oct 2022 12:39:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbiJNQj2 (ORCPT ); Fri, 14 Oct 2022 12:39:28 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C56E1114DFC; Fri, 14 Oct 2022 09:39:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Content-Type:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-To:Resent-Cc: Resent-Message-ID:In-Reply-To:References; bh=BO2vgPdgdXchK2oRtsstbiY0yQprvBApkNKGIMro4U4=; t=1665765566; x=1666975166; b=L47SJMvJa6/XcMR2cIsyr2nRRxevNXK6/oNIacKSx5gL9W6f7bm1vXvjpNKXMLtc+wzVpI1wvK2 crkUgNLrvTF/o66ZexL708KPMvwk3hGhDMaHpQVCq9eUAekhJuwRg/TWJPHNyVg73zsWd4Mzkp6jH fUuxlw6kXz24VLjUixkhgiSACqy9rUtbEhxfgJtFRKjin88h7Seq//gpKNguZELgKGYkxAnEc63yM EYjDAGb1ur10CdmHR1u6IWvi6KbGQ122wAsoPr6HHY0g6XgZrQ/OLmmWYw9yFWSoQ5qWiYD3vgIqq co5eRVLvjryJifgG8aWfiOC/mVaD1lqy/DAg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1ojNiV-006gmQ-0N; Fri, 14 Oct 2022 18:39:23 +0200 From: Johannes Berg To: linux-wireless@vger.kernel.org, stable@vger.kernel.org Cc: Felix Fietkau , Thadeu Lima de Souza Cascardo , Marcus Meissner , Jiri Kosina Subject: [RFC v5.10 0/3] mac80211 use-after-free fix Date: Fri, 14 Oct 2022 18:39:03 +0200 Message-Id: <20221014163906.23156-1-johannes@sipsolutions.net> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, So I looked at this, and it wasn't great one way or the other... The first patch here is obvious, let's just take it and get one of the parsings out of the way. The second one removes a couple of more cases where this is done, since it only happens when the last argument is non-NULL. The third then is to avoid the UAF, and is simpler now since only a few places can even allocate it. johannes