]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: Avoid crash upon missing NFTNL_OBJ_CT_TIMEOUT_ARRAY attribute
authorPhil Sutter <phil@nwl.cc>
Thu, 12 Jun 2025 18:17:22 +0000 (20:17 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 12 Jun 2025 20:56:01 +0000 (22:56 +0200)
commit2a38f458f12bc032dac1b3ba63f95ca5a3c03fbd
tree85ab9e6a53829bb8e50c28471a9029a6a7ff1cfa
parentb7a11c691d459d06a801a28ae9a52bc564584a1a
netlink: Avoid crash upon missing NFTNL_OBJ_CT_TIMEOUT_ARRAY attribute

If missing, the memcpy call ends up reading from address zero.

Fixes: c7c94802679cd ("src: add ct timeout support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c