public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/2] fix read memory access overflow in HTTPBoot.
@ 2018-09-25  8:24 Songpeng Li
  2018-09-25  8:24 ` [PATCH 1/2] NetworkPkg/HttpDxe: " Songpeng Li
  2018-09-25  8:24 ` [PATCH 2/2] NetworkPkg/HttpUtilitiesDxe: fix read memory access overflow Songpeng Li
  0 siblings, 2 replies; 5+ messages in thread
From: Songpeng Li @ 2018-09-25  8:24 UTC (permalink / raw)
  To: edk2-devel

The input param String of AsciiStrStr() requires a pointer to
 Null-terminated string, however in HttpTcpReceiveHeader() and
 HttpUtilitiesParse(), the Buffersize before AllocateZeroPool()
 is equal to the size of TCP header, after the CopyMem(), it
 might not end with Null-terminator. It might cause memory
 access overflow.

Songpeng Li (2):
  NetworkPkg/HttpDxe: fix read memory access overflow in HTTPBoot.
  NetworkPkg/HttpUtilitiesDxe: fix read memory access overflow.

 NetworkPkg/HttpDxe/HttpProto.c                      | 10 ++++++----
 NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesProtocol.c |  8 +++++++-
 2 files changed, 13 insertions(+), 5 deletions(-)

-- 
2.18.0.windows.1



^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH 0/2] fix read memory access overflow in HTTPBoot.
@ 2018-09-28  1:57 Songpeng Li
  2018-09-28  1:57 ` [PATCH 2/2] NetworkPkg/HttpUtilitiesDxe: fix read memory access overflow Songpeng Li
  0 siblings, 1 reply; 5+ messages in thread
From: Songpeng Li @ 2018-09-28  1:57 UTC (permalink / raw)
  To: edk2-devel

The input param String of AsciiStrStr() requires a pointer to
 Null-terminated string, however in HttpTcpReceiveHeader() and
 HttpUtilitiesParse(), the Buffersize before AllocateZeroPool()
 is equal to the size of TCP header, after the CopyMem(), it
 might not end with Null-terminator. It might cause memory
 access overflow.

Songpeng Li (2):
  NetworkPkg/HttpDxe: fix read memory access overflow in HTTPBoot.
  NetworkPkg/HttpUtilitiesDxe: fix read memory access overflow.

 NetworkPkg/HttpDxe/HttpProto.c                      | 10 ++++++----
 NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesProtocol.c |  8 +++++++-
 2 files changed, 13 insertions(+), 5 deletions(-)

-- 
2.18.0.windows.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-09-28  2:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-25  8:24 [PATCH 0/2] fix read memory access overflow in HTTPBoot Songpeng Li
2018-09-25  8:24 ` [PATCH 1/2] NetworkPkg/HttpDxe: " Songpeng Li
2018-09-25  8:24 ` [PATCH 2/2] NetworkPkg/HttpUtilitiesDxe: fix read memory access overflow Songpeng Li
  -- strict thread matches above, loose matches on Subject: below --
2018-09-28  1:57 [PATCH 0/2] fix read memory access overflow in HTTPBoot Songpeng Li
2018-09-28  1:57 ` [PATCH 2/2] NetworkPkg/HttpUtilitiesDxe: fix read memory access overflow Songpeng Li
2018-09-28  2:32   ` Fu, Siyuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox