]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: remove WARN and add NLA_STRING upper limits
authorFlorian Westphal <fw@strlen.de>
Thu, 16 Jan 2020 08:06:50 +0000 (09:06 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Jan 2020 13:22:32 +0000 (14:22 +0100)
commit2d273870da66ac95b1bb8fabc2b6f13f10c68427
tree63af34b5845690d5c2d4216b77986b4595cac639
parentc1a6283d9c048984efed818cdecc9e0c024792ef
netfilter: nf_tables: remove WARN and add NLA_STRING upper limits

This WARN can trigger because some of the names fed to the module
autoload function can be of arbitrary length.

Remove the WARN and add limits for all NLA_STRING attributes.

Reported-by: syzbot+0e63ae76d117ae1c3a01@syzkaller.appspotmail.com
Fixes: 2cfb2bd9103994 ("netfilter: nf_tables: add and use helper for module autoload")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c