https://github.com/torvalds/linux
Revision 9332d27d7918182add34e8043f6a754530fdd022 authored by Florian Westphal on 16 January 2020, 08:06:50 UTC, committed by Pablo Neira Ayuso on 16 January 2020, 13:22:32 UTC
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: 452238e8d5ffd8 ("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>
1 parent 9ec22d7
Raw File
Tip revision: 9332d27d7918182add34e8043f6a754530fdd022 authored by Florian Westphal on 16 January 2020, 08:06:50 UTC
netfilter: nf_tables: remove WARN and add NLA_STRING upper limits
Tip revision: 9332d27
COPYING
The Linux Kernel is provided under:

	SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note

Being under the terms of the GNU General Public License version 2 only,
according with:

	LICENSES/preferred/GPL-2.0

With an explicit syscall exception, as stated at:

	LICENSES/exceptions/Linux-syscall-note

In addition, other licenses may also apply. Please see:

	Documentation/process/license-rules.rst

for more details.
back to top