2023-01-17 17:02:40

by Pablo Neira Ayuso

[permalink] [raw]
Subject: Re: [PATCH v2 6.1] netfilter: Null pointer dereference in nf_tables_updobj

On Tue, Jan 17, 2023 at 07:45:49AM -0800, Alok Tiwari wrote:
> static analyzer detect null pointer dereference case for 'type'
> function __nft_obj_type_get() can return NULL value which require to handle
> if type is NULL pointer return -ENOENT

Applied, thanks.

I have appended:

This should not ever happen, because if an object is found, then that
implies there is an object type, but let's add this as a failsafe check.