diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-04-01 00:02:59 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-04-06 00:26:36 +0300 |
commit | a26c1e49c8e97922edc8d7e23683384729d09f77 (patch) | |
tree | a574149daa02cf52bf554569ea40f2cada4caa7a /include/uapi | |
parent | 72239f2795fab9a58633bd0399698ff7581534a3 (diff) | |
download | linux-a26c1e49c8e97922edc8d7e23683384729d09f77.tar.xz |
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 undoes 24791b9aa1ab ("netfilter: nft_set_bitmap: initialize set
element extension in lookups") which is not required anymore.
Fixes: 339706bc21c1 ("netfilter: nft_lookup: update element stateful expression")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions