mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-15 19:56:03 +00:00
netfilter: nf_tables: do not update stateful expressions if lookup is inverted
Initialize set lookup matching element to NULL. Otherwise, the NFT_LOOKUP_F_INV flag reverses the matching logic and it leads to deference an uninitialized pointer to the matching element. Make sure element data area and stateful expression are accessed if there is a matching set element. This patch undoes24791b9aa1("netfilter: nft_set_bitmap: initialize set element extension in lookups") which is not required anymore. Fixes:339706bc21("netfilter: nft_lookup: update element stateful expression") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
72239f2795
commit
a26c1e49c8
3 changed files with 8 additions and 7 deletions
Loading…
Add table
Add a link
Reference in a new issue