]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_log: fix uninit read in nf_log_proc_dostring
authorJann Horn <jannh@google.com>
Wed, 20 Jun 2018 16:33:45 +0000 (18:33 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 26 Jun 2018 14:48:23 +0000 (16:48 +0200)
commiteede10f5b36e5b5a27700422a22b5726ce1210a6
tree527ee8d7048c5e0df7398273a7bac5cac5bda6c5
parent18da36efeb42792dce3ccef06f4078ff313ad50a
netfilter: nf_log: fix uninit read in nf_log_proc_dostring

When proc_dostring() is called with a non-zero offset in strict mode, it
doesn't just write to the ->data buffer, it also reads. Make sure it
doesn't read uninitialized data.

Fixes: 476a68559c75 ("netfilter: nf_log: fix error on write NONE to [...]")
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_log.c