[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20121126.173714.1141101687172076447.davem@davemloft.net>
Date: Mon, 26 Nov 2012 17:37:14 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: gang.chen@...anux.com, netdev@...r.kernel.org
Subject: Re: [PATCH] net: ipmr: limit MRT_TABLE identifiers
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Sun, 25 Nov 2012 11:44:29 -0800
> From: Eric Dumazet <edumazet@...gle.com>
>
> Name of pimreg devices are built from following format :
>
> char name[IFNAMSIZ]; // IFNAMSIZ == 16
>
> sprintf(name, "pimreg%u", mrt->id);
>
> We must therefore limit mrt->id to 9 decimal digits
> or risk a buffer overflow and a crash.
>
> Restrict table identifiers in [0 ... 999999999] interval.
>
> Reported-by: Chen Gang <gang.chen@...anux.com>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Applied, thanks Eric.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists