* [PATCH 3.8-stable] netfilter: nfnetlink_acct: return -EINVAL if object name is empty
@ 2013-04-12 15:16 Jonghwan Choi
2013-04-13 10:08 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Jonghwan Choi @ 2013-04-12 15:16 UTC (permalink / raw)
To: Pablo Neira Ayuso; +Cc: stable, netfilter, Jonghwan Choi
From: Pablo Neira Ayuso <pablo@netfilter.org>
This patch looks like it should be in the 3.8-stable tree, should we apply
it?
------------------
From: "Pablo Neira Ayuso <pablo@netfilter.org>"
commit deadcfc3324410726cd6a663fb4fc46be595abe7 upstream
If user-space tries to create accounting object with an empty
name, then return -EINVAL.
Reported-by: Michael Zintakis <michael.zintakis@googlemail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
---
net/netfilter/nfnetlink_acct.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/netfilter/nfnetlink_acct.c b/net/netfilter/nfnetlink_acct.c
index 589d686..dc3fd5d 100644
--- a/net/netfilter/nfnetlink_acct.c
+++ b/net/netfilter/nfnetlink_acct.c
@@ -49,6 +49,8 @@ nfnl_acct_new(struct sock *nfnl, struct sk_buff *skb,
return -EINVAL;
acct_name = nla_data(tb[NFACCT_NAME]);
+ if (strlen(acct_name) == 0)
+ return -EINVAL;
list_for_each_entry(nfacct, &nfnl_acct_list, head) {
if (strncmp(nfacct->name, acct_name, NFACCT_NAME_MAX) != 0)
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH 3.8-stable] netfilter: nfnetlink_acct: return -EINVAL if object name is empty
2013-04-12 15:16 [PATCH 3.8-stable] netfilter: nfnetlink_acct: return -EINVAL if object name is empty Jonghwan Choi
@ 2013-04-13 10:08 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2013-04-13 10:08 UTC (permalink / raw)
To: Jonghwan Choi; +Cc: stable, netfilter, Jonghwan Choi
On Sat, Apr 13, 2013 at 12:16:05AM +0900, Jonghwan Choi wrote:
> From: Pablo Neira Ayuso <pablo@netfilter.org>
>
> This patch looks like it should be in the 3.8-stable tree, should we apply
> it?
Please, hold on with this. I'm preparing a -stable batch.
> ------------------
>
> From: "Pablo Neira Ayuso <pablo@netfilter.org>"
>
> commit deadcfc3324410726cd6a663fb4fc46be595abe7 upstream
>
> If user-space tries to create accounting object with an empty
> name, then return -EINVAL.
>
> Reported-by: Michael Zintakis <michael.zintakis@googlemail.com>
> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
> Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
> ---
> net/netfilter/nfnetlink_acct.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/net/netfilter/nfnetlink_acct.c b/net/netfilter/nfnetlink_acct.c
> index 589d686..dc3fd5d 100644
> --- a/net/netfilter/nfnetlink_acct.c
> +++ b/net/netfilter/nfnetlink_acct.c
> @@ -49,6 +49,8 @@ nfnl_acct_new(struct sock *nfnl, struct sk_buff *skb,
> return -EINVAL;
>
> acct_name = nla_data(tb[NFACCT_NAME]);
> + if (strlen(acct_name) == 0)
> + return -EINVAL;
>
> list_for_each_entry(nfacct, &nfnl_acct_list, head) {
> if (strncmp(nfacct->name, acct_name, NFACCT_NAME_MAX) != 0)
> --
> 1.7.10.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-13 10:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-12 15:16 [PATCH 3.8-stable] netfilter: nfnetlink_acct: return -EINVAL if object name is empty Jonghwan Choi
2013-04-13 10:08 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox