Files
linux/drivers/net
James Chapman 6b6707a50c l2tp: Fix potential memory corruption in pppol2tp_recvmsg()
This patch fixes a potential memory corruption in
pppol2tp_recvmsg(). If skb->len is bigger than the caller's buffer
length, memcpy_toiovec() will go into unintialized data on the kernel
heap, interpret it as an iovec and start modifying memory.

The fix is to change the memcpy_toiovec() call to
skb_copy_datagram_iovec() so that paged packets (rare for PPPOL2TP)
are handled properly. Also check that the caller's buffer is big
enough for the data and set the MSG_TRUNC flag if it is not so.

Reported-by: Ilja <ilja@netric.org>
Signed-off-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-06-10 12:35:00 -07:00
..
2008-01-28 15:10:29 -08:00
2008-05-13 01:31:37 -04:00
2008-06-09 15:47:38 -07:00
2008-05-30 22:07:19 -04:00
2008-03-26 00:18:44 -04:00
2008-03-17 08:11:03 -04:00
…
…
…
2008-01-28 15:04:05 -08:00
…
…
…
2008-01-28 15:07:12 -08:00
…
…
2008-03-26 00:18:43 -04:00
…
2008-01-28 15:07:12 -08:00
…
…
…
2008-01-28 15:03:59 -08:00
2008-03-26 00:18:43 -04:00
…
2008-05-22 06:20:14 -04:00
…
2008-04-29 01:56:14 -04:00
…
…
2008-01-31 19:27:17 -08:00
2008-05-02 16:58:18 -07:00
2008-02-28 11:51:50 -08:00
2008-02-28 11:51:50 -08:00
2008-02-28 11:57:55 -08:00
2008-01-04 00:47:04 -08:00
2008-05-22 06:20:02 -04:00
…
…
…
…
…
2008-03-26 00:18:43 -04:00
…
…
…
2008-01-18 14:44:33 -05:00
2008-02-01 20:54:03 +11:00
…
…
2008-04-29 08:06:27 -07:00
…
2008-01-28 15:07:59 -08:00
2008-04-29 01:56:01 -04:00
2008-03-05 18:51:19 -08:00
…
…
2007-10-19 11:53:42 -07:00
…
…
2008-05-01 08:08:36 -07:00
2008-04-29 08:06:27 -07:00
2008-01-28 15:07:12 -08:00
…
…
…
…
…
…
2008-02-03 04:26:12 -08:00
…
…
2008-03-17 08:11:41 -04:00
2008-01-28 15:05:53 -08:00
2008-05-21 16:55:59 -07:00
2008-04-25 02:08:51 -04:00
…
…
2008-01-28 15:04:05 -08:00
…
…
2008-01-28 15:07:12 -08:00
…
2007-10-19 11:53:42 -07:00
…
2008-02-03 04:28:10 -08:00
…
…
2008-03-17 07:56:33 -04:00
…
…
2008-03-26 00:18:04 -04:00
2008-03-26 00:18:00 -04:00
…
…
2007-10-23 21:28:40 -04:00
…
2008-01-28 15:07:56 -08:00
2008-03-05 16:34:41 -06:00
2008-05-22 06:03:29 -04:00
2008-01-28 15:11:27 -08:00
…
2008-01-28 15:08:00 -08:00
2008-03-17 07:56:27 -04:00
2008-01-28 15:03:59 -08:00
…
…
2008-04-16 20:41:44 -04:00
2008-05-22 06:18:55 -04:00
2008-05-30 22:07:17 -04:00
…
2008-04-27 18:19:08 +02:00
2008-01-28 15:03:59 -08:00
…
2007-10-16 21:10:29 -04:00
2008-05-13 01:31:44 -04:00
2008-01-28 15:11:27 -08:00
2008-04-30 08:29:47 -07:00
…
2008-01-28 15:03:59 -08:00
…
…
…
…
…
2008-04-16 20:06:50 -04:00
…
2008-02-03 04:26:15 -08:00
…
2008-01-28 15:03:46 -08:00
2008-03-23 03:35:12 -07:00
2008-01-28 15:07:10 -08:00
2008-01-28 15:07:09 -08:00
2008-02-03 04:26:14 -08:00
…
…
2008-04-17 15:31:31 -04:00
…
2008-06-09 15:41:33 -07:00
…
2008-04-25 02:45:23 -04:00
…
…