[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161103.162005.780023731830218450.davem@davemloft.net>
Date: Thu, 03 Nov 2016 16:20:05 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, gerrit@....abdn.ac.uk, dccp@...r.kernel.org
Subject: Re: [PATCH net] dccp: fix out of bound access in dccp_v4_err()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 02 Nov 2016 19:00:40 -0700
> From: Eric Dumazet <edumazet@...gle.com>
>
> dccp_v4_err() does not use pskb_may_pull() and might access garbage.
>
> We only need 4 bytes at the beginning of the DCCP header, like TCP,
> so the 8 bytes pulled in icmp_socket_deliver() are more than enough.
>
> This patch might allow to process more ICMP messages, as some routers
> are still limiting the size of reflected bytes to 28 (RFC 792), instead
> of extended lengths (RFC 1812 4.3.2.3)
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists