Commit fe728806 authored by liucheng (G)'s avatar liucheng (G) Committed by Joe Hershberger
Browse files

CVE: net: fix unbounded memcpy of UDP packet

This patch adds a check to udp_len to fix unbounded memcpy for
CVE-2019-14192, CVE-2019-14193 and CVE-2019-14199.

Signed-off-by: default avatarCheng Liu <>
Reviewed-by: default avatarSimon Goldschmidt <>
Reported-by: default avatarFermín Serna <>
Acked-by: Joe Hershberger's avatarJoe Hershberger <>
parent 12c2a310
......@@ -1264,6 +1264,9 @@ void net_process_received_packet(uchar *in_packet, int len)
if (ntohs(ip->udp_len) < UDP_HDR_SIZE || ntohs(ip->udp_len) > ntohs(ip->ip_len))
"received UDP (to=%pI4, from=%pI4, len=%d)\n",
&dst_ip, &src_ip, len);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment