[edk2-devel] [PATCH v4 1/1] NetworkPkg/ArpDxe: Recycle invalid ARP packets (CVE-2019-14559)

Siyuan, Fu siyuan.fu at intel.com
Thu Feb 20 00:31:29 UTC 2020


Reviewed-by: Siyuan Fu <siyuan.fu at intel.com>

> -----Original Message-----
> From: Armour, Nicholas <nicholas.armour at intel.com>
> Sent: 2020年2月20日 8:23
> To: devel at edk2.groups.io
> Cc: Armour, Nicholas <nicholas.armour at intel.com>; Wu, Jiaxin
> <jiaxin.wu at intel.com>; Maciej Rabeda <maciej.rabeda at linux.intel.com>; Fu,
> Siyuan <siyuan.fu at intel.com>
> Subject: [PATCH v4 1/1] NetworkPkg/ArpDxe: Recycle invalid ARP packets
> (CVE-2019-14559)
> 
> Update copyright
> 
> Cc: Jiaxin Wu <jiaxin.wu at intel.com>
> Cc: Maciej Rabeda <maciej.rabeda at linux.intel.com>
> Cc: Siyuan Fu <siyuan.fu at intel.com>
> Signed-off-by: Nicholas Armour <nicholas.armour at intel.com>
> ---
>  NetworkPkg/ArpDxe/ArpImpl.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/NetworkPkg/ArpDxe/ArpImpl.c b/NetworkPkg/ArpDxe/ArpImpl.c
> index 9cdb33f2bd66..ed2d756d3e17 100644
> --- a/NetworkPkg/ArpDxe/ArpImpl.c
> +++ b/NetworkPkg/ArpDxe/ArpImpl.c
> @@ -1,7 +1,7 @@
>  /** @file
>    The implementation of the ARP protocol.
> 
> -Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
> +Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.<BR>
>  SPDX-License-Identifier: BSD-2-Clause-Patent
> 
>  **/
> @@ -113,7 +113,7 @@ ArpOnFrameRcvdDpc (
>      //
>      // Restart the receiving if packet size is not correct.
>      //
> -    goto RESTART_RECEIVE;
> +    goto RECYCLE_RXDATA;
>    }
> 
>    //
> @@ -125,7 +125,7 @@ ArpOnFrameRcvdDpc (
>    Head->OpCode    = NTOHS (Head->OpCode);
> 
>    if (RxData->DataLength < (sizeof (ARP_HEAD) + 2 * Head->HwAddrLen + 2 *
> Head->ProtoAddrLen)) {
> -    goto RESTART_RECEIVE;
> +    goto RECYCLE_RXDATA;
>    }
> 
>    if ((Head->HwType != ArpService->SnpMode.IfType) ||
> --
> 2.16.2.windows.1


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#54655): https://edk2.groups.io/g/devel/message/54655
Mute This Topic: https://groups.io/mt/71410191/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list