Message ID | 20230906223055.35186-3-yuxuan.luo@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=HoFlRUOL; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RgxtK22XXz1yh8 for <incoming@patchwork.ozlabs.org>; Thu, 7 Sep 2023 08:31:20 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1qe13C-0003Fg-R4; Wed, 06 Sep 2023 22:31:06 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from <yuxuan.luo@canonical.com>) id 1qe137-0003Ea-8L for kernel-team@lists.ubuntu.com; Wed, 06 Sep 2023 22:31:01 +0000 Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id E4F593F32D for <kernel-team@lists.ubuntu.com>; Wed, 6 Sep 2023 22:31:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1694039460; bh=MblIabZE2UGLLwm8VHf0RqK3OEhpXBIkh6kW0Hxqd88=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HoFlRUOLIUeEAZB/qJoYJLMEyDqvNOubNHBZAAmAF5LsIVIs7M7fpATo8Vtv8J3SP CqsexNAU7oX5imGfbnXW5v2IRFm2t8+B0U0GAYiC7/jSvKEDqEeLgFNsetsKqEZrWW jPPMrYb+fx/gIJTinluIs6vFSFlWsO9RzRUNleXUxJbs+HniZt0Y5KoId4/DTP+xlz IxMaD1LWD8i7Ky7i1igRMeCb1aK9VEeWykXu8KSJ7uuEnRbuBVXjQucr72p6eQSFaY 4qw0KXBhVYuNmVj6i3C0NSxbu+iYHmn1UBedShKDL/K+WvJVo8/cMJmrblDFzThYTv rrkHgSw6piUKA== Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-3ab3059eb0cso352641b6e.3 for <kernel-team@lists.ubuntu.com>; Wed, 06 Sep 2023 15:31:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694039459; x=1694644259; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MblIabZE2UGLLwm8VHf0RqK3OEhpXBIkh6kW0Hxqd88=; b=WmvEW1U6w0krdsbDvkwdognnU0LvH/v1ICWyGbFLU9B6l20CKj71sw1oPZ6ToVPIRj GUnviiCM4Fqj6kN22VgG/BT8kHJM4pNGqCQKuMnSdobZf/NInGBhGsB8lVyGgdZPF2xr ALJGrq0+4Rshq+kN2xDwaXcScotTZhpeZyWb4DBS20IRE6S5ltZ3ycNzidA53DRU+5Rz 5Nt29yDfs67Ssguo455P17h1cbXTuUx8hNU8d206uSkI9EwoesVsLemqQXm0LrLOyiWA KFBbXdqOVKJWiBz7zu3jQYkP8lqYvP2CmGHPU/y+a95oTEB5a6hnnKidkwCaZRfqTR9b N+OA== X-Gm-Message-State: AOJu0YwIGDkjAsQnIpStqNrMhRj+vfDQwRtJQ4O+9MIHvJ1Mqhg1VdVg V6PBujtZGhXgLZuS407CqG62q2G7jeqhZUFlnKzV6tQz7ZP2jsi9xX9cBftjDxKrGDC/FZ6MKzL eDdxxZDyqh1UAK5AWy4KJpyLlXGYysYB9y1qYlwIwQP3ayij0ew== X-Received: by 2002:a05:6358:724c:b0:139:c390:f1f1 with SMTP id i12-20020a056358724c00b00139c390f1f1mr5170663rwa.23.1694039459226; Wed, 06 Sep 2023 15:30:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxAAAX1F5+fOmAQPypV8io7A4KJa5hkHdHhmp4HxLZNWAThJhTCwNWTXdSrEtoMbDssMwJlg== X-Received: by 2002:a05:6358:724c:b0:139:c390:f1f1 with SMTP id i12-20020a056358724c00b00139c390f1f1mr5170634rwa.23.1694039458645; Wed, 06 Sep 2023 15:30:58 -0700 (PDT) Received: from cache-ubuntu.hsd1.nj.comcast.net ([2601:86:200:98b0:60d1:6245:8cf8:9b33]) by smtp.gmail.com with ESMTPSA id z3-20020a0cda83000000b0064f70c57531sm5787589qvj.57.2023.09.06.15.30.58 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 15:30:58 -0700 (PDT) From: Yuxuan Luo <yuxuan.luo@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [SRU][J/L][PATCH 1/1] xfrm: add NULL check in xfrm_update_ae_params Date: Wed, 6 Sep 2023 18:30:55 -0400 Message-Id: <20230906223055.35186-3-yuxuan.luo@canonical.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230906223055.35186-1-yuxuan.luo@canonical.com> References: <20230906223055.35186-1-yuxuan.luo@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
CVE-2023-3772
|
expand
|
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 6794b9dea27aa..8333a44457dee 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -628,7 +628,7 @@ static void xfrm_update_ae_params(struct xfrm_state *x, struct nlattr **attrs, struct nlattr *rt = attrs[XFRMA_REPLAY_THRESH]; struct nlattr *mt = attrs[XFRMA_MTIMER_THRESH]; - if (re) { + if (re && x->replay_esn && x->preplay_esn) { struct xfrm_replay_state_esn *replay_esn; replay_esn = nla_data(re); memcpy(x->replay_esn, replay_esn,