Re: net/tcp: null-ptr-deref in __inet_lookup_listener/inet_exact_dif_match

From: David Ahern
Date: Wed Nov 02 2016 - 14:31:29 EST


On 11/2/16 11:21 AM, Eric Dumazet wrote:
> Thanks for your report.
>
> David, please take a look.
>
> TCP MD5 can call __inet_lookup_listener() with a NULL skb.

interesting. I did not test md5 before sending, but doing so now I am not able to trigger the panic with any combination of passwords - correct, wrong, none, no listener, etc. perhaps I am missing a sysctl setting.

Will send a fix. I see the call to __inet_lookup_listener with null skb.

>
> Bug added in commit a04a480d4392ea6efd117be2de564117b2a009c0