]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: Fix for potential crash parsing a flowtable
authorPhil Sutter <phil@nwl.cc>
Wed, 11 Jun 2025 11:12:56 +0000 (13:12 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 12 Jun 2025 20:55:16 +0000 (22:55 +0200)
commitd5ef04441eb1de3efc27aa70193fe3d7f0b5c408
tree07de1c1028ed1b1ab72e5704e28feb4eb7f20f2b
parentd3339f9e35ee4dddf290fcc3e9cc63dac8cb836a
netlink: Fix for potential crash parsing a flowtable

Kernel's flowtable message might not contain the
NFTA_FLOWTABLE_HOOK_DEVS attribute. In that case, nftnl_flowtable_get()
will return NULL for the respective nftnl attribute.

Fixes: db0697ce7f602 ("src: support for flowtable listing")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c