Files
linux-legacy/drivers/net
Daniel Mack 2e6f37a113 Libertas: fix buffer overflow in lbs_get_essid()
commit 45b241689179a6065384260242637cf21dabfb2d upstream.

The libertas driver copies the SSID buffer back to the wireless core and
appends a trailing NULL character for termination. This is

a) unnecessary because the buffer is allocated with kzalloc and is hence
   already NULLed when this function is called, and

b) for priv->curbssparams.ssid_len == 32, it writes back one byte too
   much which causes memory corruptions.

Fix this by removing the extra write.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Maithili Hinge <maithili@marvell.com>
Cc: Kiran Divekar <dkiran@marvell.com>
Cc: Michael Hirsch <m.hirsch@raumfeld.com>
Cc: netdev@vger.kernel.org
Cc: libertas-dev@lists.infradead.org
Cc: linux-wireless@lists.infradead.org
Acked-by: Holger Schurig <holgerschurig@gmail.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-01-06 14:26:27 -08:00
..
2009-07-13 11:11:41 -07:00
2009-07-03 19:10:51 -07:00
2009-07-26 18:50:39 -07:00
2009-07-30 13:27:28 -07:00
2009-07-12 14:20:04 -07:00
2009-07-26 18:50:38 -07:00
2009-12-18 13:43:53 -08:00
2009-07-09 20:32:31 -07:00
2009-08-15 18:50:47 -07:00
2009-08-15 18:50:44 -07:00
2009-07-26 18:53:17 -07:00
2009-07-30 13:27:34 -07:00
2009-07-05 18:03:33 -07:00
2009-09-06 01:41:24 -07:00
2009-10-12 12:40:20 -07:00
2009-07-20 08:23:26 -07:00
2009-07-20 08:23:26 -07:00
2009-07-20 08:23:26 -07:00
2009-06-25 20:06:34 -07:00
2009-06-18 00:29:08 -07:00
2009-08-09 21:45:48 -07:00
2009-07-12 14:20:04 -07:00
2009-07-16 09:14:23 -07:00
2009-07-30 14:19:19 -07:00
2009-07-26 20:18:52 -07:00
2009-08-02 12:20:40 -07:00
2009-12-08 10:22:36 -08:00
2009-12-18 13:43:56 -08:00
2009-07-12 14:20:04 -07:00