Re: [PATCH nft] json: prevent null deref if chain->policy is not set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 02, 2025 at 02:22:33PM +0200, Florian Westphal wrote:
> The two commits mentioned below resolved null dererence crashes when
> resolved a null dereference crash when the policy resp. priority keyword
> was missing in the chain / flowtable specification.
> 
> Same issue exists in the json output path, so apply similar fix
> there and extend the existing test cases.
> 
> Fixes: 5b37479b42b3 ("nftables: don't crash in 'list ruleset' if policy is not set")
> Fixes: b40bebbcee36 ("rule: do not crash if to-be-printed flowtable lacks priority")
> Signed-off-by: Florian Westphal <fw@xxxxxxxxx>

Acked-by: Phil Sutter <phil@xxxxxx>

Thanks, Phil




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux