diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-05-27 09:56:18 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-05-31 23:13:10 +0200 |
commit | fecf31ee395b0295f2d7260aa29946b7605f7c85 (patch) | |
tree | 6d90cad797014df56c589ad7e3310946d04ff78a /scripts/gdb/linux/clk.py | |
parent | 09e545f7381459c015b6fa0cd0ac6f010ef8cc25 (diff) |
netfilter: nf_tables: sanitize nft_set_desc_concat_parse()
Add several sanity checks for nft_set_desc_concat_parse():
- validate desc->field_count not larger than desc->field_len array.
- field length cannot be larger than desc->field_len (ie. U8_MAX)
- total length of the concatenation cannot be larger than register array.
Joint work with Florian Westphal.
Fixes: f3a2181e16f1 ("netfilter: nf_tables: Support for sets with multiple ranged fields")
Reported-by: <zhangziming.zzm@antgroup.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'scripts/gdb/linux/clk.py')
0 files changed, 0 insertions, 0 deletions