Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp3329207rwb; Sun, 30 Jul 2023 05:35:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlGhl6SHQISO7SOFwPmL9vtqoKKf7Byj89tM4k6YSalqxKEX9VG8zQ9bBe1rRxFr9CCiBmHg X-Received: by 2002:a05:6a20:9681:b0:134:dc23:2994 with SMTP id hp1-20020a056a20968100b00134dc232994mr6468600pzc.31.1690720536692; Sun, 30 Jul 2023 05:35:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690720536; cv=none; d=google.com; s=arc-20160816; b=akyKadxKws6BbiGUjn5g6dGuGp9pUPhez+OPz0QEgqoz406yYoPxUWQfHs1pTaHiEz sB3HF69HO3UNcRq/tUEB2qU2rFUM0Rvma2cQV0n0yHqgd0/rmuzV96dpsAi4pZCZPTGB YsDZWX030R8Wj8aiQLpqtMAMCdPYQUQOsh5qnynQGESE7yXcbPvsCNrZzLe8FcGWIATP UpkALrAkCbhebOIcPtn/mgqAZekRpqhSwcx/NHxvuDzi7Bg+MbbJrFpQVG20NYaNzijL VehrJOBFsfKhQm6B+vT03EtfTV+wi657dP0NtvmO1PWuFSJpTbrQ/3VHDGeuaVieZZiG YSyw== 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=ZysE3svbq8ZZ1Ff6Jw2Idp7Ac5gyX1GTid6mSlKH9F8=; fh=nGWeP/WfoQ8qy2T8IhIsr2YWRLYpSYDAyxtH4ErUgMY=; b=SuONflNrKtHROpnCGlUzCK7Xk09jGzrtXk5w6Ojcp3vkeKbHvts5If8cinANiKzJbC ylxHHo+3lPa3mDpZYblKmr9ycZZIFwaU35xIA8LJdgEuCZvxF2L8ZoBZ8I9iGH8+LNbV 1h12xsLeSe4Hutk83EeFJiV5uUobkOOsf/p4kjH+8mAvUehezGOKikovDiy4jGeX+cVX IdxjJSbSs+LMoTFe5y2pJlEyQd+s2I1EpPL7CmahsWXLxVlkkeMUYZ32+rjDK/+v5IeP k8b1SucJk3JVnmg3Hi4RPXE2Fo2swf1DBSV+XhgSyQDBVYgdjMxZALDbXdQ8ZyKMrIWm JLdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=q5RyfES8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 k8-20020a633d08000000b00563eced0fe6si4270149pga.236.2023.07.30.05.35.24; Sun, 30 Jul 2023 05:35:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=q5RyfES8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S229749AbjG3Kwq (ORCPT + 99 others); Sun, 30 Jul 2023 06:52:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjG3Kwp (ORCPT ); Sun, 30 Jul 2023 06:52:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FC29CF for ; Sun, 30 Jul 2023 03:52:44 -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 2EE8C60BED for ; Sun, 30 Jul 2023 10:52:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2324C433C7; Sun, 30 Jul 2023 10:52:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690714363; bh=L0/B2pwlAtd2YgE4g+cGWSdLmLx7xZyE3P9pMCFiAY8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=q5RyfES8dyv7/I1/iF9BsbR+u3+ZLu+hoM4q9wzg6qHiT9Bpq3GeesQntP4blN6tk xO5BmUE5uFSMDPrRC4ebZJONXej1rHSnyoQIm1CN3TvVBTSNF4/owVf3SCfz9sR5AV 8l30wAiDcnGU9bSbhb841QHjK8dCEK9TSs2B1B/3hbxVYFU+dxDItM2PvWtBg9zJQP HAnBPzhxYWbsZ/75HnK7bIgV+4wpbTpyNSvN8n5vVChl3LQl9IqFKPP+v3TdBE6pOx fJxuLGl3p9IKjERgbcz6yTurpSRAct+iiCiDZD1rMVHLZfmAkT+p7jeQy5KiGggT10 3WgNkesYys1qg== Date: Sun, 30 Jul 2023 13:52:38 +0300 From: Leon Romanovsky To: Lin Ma Cc: steffen.klassert@secunet.com, herbert@gondor.apana.org.au, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] xfrm: add forgotten nla_policy for XFRMA_MTIMER_THRESH Message-ID: <20230730105238.GB94048@unreal> References: <20230723074110.3705047-1-linma@zju.edu.cn> <20230726115500.GV11388@unreal> <5be7712f.ead00.1899266e0a1.Coremail.linma@zju.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5be7712f.ead00.1899266e0a1.Coremail.linma@zju.edu.cn> 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-kernel@vger.kernel.org On Wed, Jul 26, 2023 at 09:32:43PM +0800, Lin Ma wrote: > Hello Leon, > > > > > This CVE is a joke, you need to be root to execute this attack. > > > > Not really, this call routine only checks > > if (!netlink_net_capable(skb, CAP_NET_ADMIN)) > return -EPERM; > > and any users in most vendor kernel can create a network namespace to > get such privilege and trigger this bug. ok, fair enough. > > > Anyway change is ok. > > Reviewed-by: Leon Romanovsky > > Regards > Lin