Commit 88044c8c9635b2ec67a27c6f334965e5b97eb2c7

Authored by Patrick McHardy
Committed by David S. Miller
1 parent c1d2a1965a

[NETFILTER]: nf_conntrack_netbios_ns: fix uninitialized member in expectation

->helper is uninitialized in the expectation registered by the netbios_ns
helper and it later copied to the expected connection, which causes invalid
memory dereferences when trying to call the helper.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

net/netfilter/nf_conntrack_netbios_ns.c
... ... @@ -89,6 +89,7 @@
89 89  
90 90 exp->expectfn = NULL;
91 91 exp->flags = NF_CT_EXPECT_PERMANENT;
  92 + exp->helper = NULL;
92 93  
93 94 nf_conntrack_expect_related(exp);
94 95 nf_conntrack_expect_put(exp);