Re: [PATCH] netfilter: ebtables: fix a NULL pointer dereference in ebt_do_table()
From: Florian Westphal
Date: Sat Aug 20 2022 - 12:27:22 EST
Harshit Mogalapalli <harshit.m.mogalapalli@xxxxxxxxxx> wrote:
> In ebt_do_table() function dereferencing 'private->hook_entry[hook]'
> can lead to NULL pointer dereference. So add a check to prevent that.
This looks incorrect, i.e. paperimg over the problem.
If hook_entry[hook] is NULL, how did this make it to the eval loop?
I guess ebtables lacks a sanity check on incoming ruleset?