From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id CB550AC0A31 for ; Wed, 24 Jan 2024 05:20:34 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=0ErBp6prEo3wOuOLo2UgCTbvDDPRQi3kOL8uaVtnr5o=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1706073633; v=1; b=TKhVX/Yfg3pjevniKdr8xaCOshcBfvLE17mk98Lc+EpnDkvwanP58X/jVZrgcS1uDaYEAzSA FnaR5J+B5Old7kmZHM01F421qqpn07TLmH12WlcOcNFePsM7e1dED9fGHFh2XJZ2D6nxC7KJWPm cfCGcuicssV9rlwhd0Fdw5WE= X-Received: by 127.0.0.2 with SMTP id XUcvYY7687511xIGLn4VTK5K; Tue, 23 Jan 2024 21:20:33 -0800 X-Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mx.groups.io with SMTP id smtpd.web11.16104.1706073630752031188 for ; Tue, 23 Jan 2024 21:20:30 -0800 X-Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1d74dce86f7so24121395ad.2 for ; Tue, 23 Jan 2024 21:20:30 -0800 (PST) X-Gm-Message-State: c6b1eJui7BQpltfBVrJWyPq1x7686176AA= X-Google-Smtp-Source: AGHT+IG+q2hNfvMGbmqq6MCYY+eQHtPrL1C2GSpb+Y41vVMRtsHIQbLjHQAkgNcT44aJR2WFLBFGaw== X-Received: by 2002:a17:902:d486:b0:1d5:36e8:9ac0 with SMTP id c6-20020a170902d48600b001d536e89ac0mr344957plg.50.1706073630163; Tue, 23 Jan 2024 21:20:30 -0800 (PST) X-Received: from localhost.localdomain ([24.17.138.83]) by smtp.gmail.com with ESMTPSA id w2-20020a170902c78200b001d71f10aa42sm7831709pla.11.2024.01.23.21.20.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 21:20:29 -0800 (PST) From: "Doug Flick via groups.io" To: devel@edk2.groups.io Cc: Doug Flick , Saloni Kasbekar , Zachary Clark-williams , "Doug Flick [MSFT]" Subject: [edk2-devel] [PATCH 05/14] NetworkPkg: Ip6Dxe: SECURITY PATCH CVE-2023-45231 - Patch Date: Tue, 23 Jan 2024 19:33:28 -0800 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,dougflick@microsoft.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="TKhVX/Yf"; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io From: Doug Flick REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D4536 SECURITY PATCH - Patch TCBZ4536 CVE-2023-45231 CVSS 6.5 : CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CWE-125 Out-of-bounds Read Cc: Saloni Kasbekar Cc: Zachary Clark-williams Signed-off-by: Doug Flick [MSFT] --- NetworkPkg/Ip6Dxe/Ip6Option.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/NetworkPkg/Ip6Dxe/Ip6Option.c b/NetworkPkg/Ip6Dxe/Ip6Option.c index 199eea124dfe..8718d5d8756a 100644 --- a/NetworkPkg/Ip6Dxe/Ip6Option.c +++ b/NetworkPkg/Ip6Dxe/Ip6Option.c @@ -137,6 +137,14 @@ Ip6IsNDOptionValid ( return FALSE;=0D }=0D =0D + //=0D + // Cannot process truncated options.=0D + // Cannot process options with a length of 0 as there is no Type field.= =0D + //=0D + if (OptionLen < sizeof (IP6_OPTION_HEADER)) {=0D + return FALSE;=0D + }=0D +=0D Offset =3D 0;=0D =0D //=0D --=20 2.43.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#114257): https://edk2.groups.io/g/devel/message/114257 Mute This Topic: https://groups.io/mt/103926735/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-