audk/NetworkPkg/Dhcp6Dxe
Doug Flick 1c440a5ece NetworkPkg: Dhcp6Dxe: SECURITY PATCH CVE-2023-45229 Related Patch
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4673
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4534

This was not part of the Quarkslab bugs however the same pattern
as CVE-2023-45229 exists in Dhcp6UpdateIaInfo.

This patch replaces the code in question with the safe function
created to patch CVE-2023-45229

>
>   if (EFI_ERROR (
>        Dhcp6SeekInnerOptionSafe (
>          Instance->Config->IaDescriptor.Type,
>          Option,
>          OptionLen,
>          &IaInnerOpt,
>          &IaInnerLen
>          )
>        ))
>  {
>    return EFI_DEVICE_ERROR;
>  }
>

Additionally corrects incorrect usage of macro to read the status

> - StsCode = NTOHS (ReadUnaligned16 ((UINT16 *)DHCP6_OFFSET_OF_OPT_LEN
 (Option)));
> + StsCode = NTOHS (ReadUnaligned16 ((UINT16 *)
DHCP6_OFFSET_OF_STATUS_CODE (Option));

Cc: Saloni Kasbekar <saloni.kasbekar@intel.com>
Cc: Zachary Clark-williams <zachary.clark-williams@intel.com>
Signed-off-by: Doug Flick [MSFT] <doug.edk2@gmail.com>
Reviewed-by: Saloni Kasbekar <saloni.kasbekar@intel.com>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
2024-02-14 03:28:11 +00:00
..
GoogleTest NetworkPkg: Dhcp6Dxe: SECURITY PATCH CVE-2023-45229 Unit Tests 2024-02-06 19:24:26 +00:00
ComponentName.c NetworkPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Dhcp6Driver.c NetworkPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Dhcp6Driver.h NetworkPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Dhcp6Dxe.inf NetworkPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:15 -07:00
Dhcp6Dxe.uni NetworkPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:15 -07:00
Dhcp6DxeExtra.uni NetworkPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:15 -07:00
Dhcp6Impl.c NetworkPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Dhcp6Impl.h NetworkPkg: Dhcp6Dxe: SECURITY PATCH CVE-2023-45229 Patch 2024-02-06 19:24:26 +00:00
Dhcp6Io.c NetworkPkg: Dhcp6Dxe: SECURITY PATCH CVE-2023-45229 Related Patch 2024-02-14 03:28:11 +00:00
Dhcp6Io.h NetworkPkg: Dhcp6Dxe: SECURITY PATCH CVE-2023-45229 Related Patch 2024-02-14 03:28:11 +00:00
Dhcp6Utility.c NetworkPkg: Dhcp6Dxe: SECURITY PATCH CVE-2023-45230 Patch 2024-02-06 19:24:26 +00:00
Dhcp6Utility.h NetworkPkg: Dhcp6Dxe: SECURITY PATCH CVE-2023-45230 Patch 2024-02-06 19:24:26 +00:00