Wei Wang
7db92362d2
tcp: fix potential double free issue for fastopen_req
...
tp->fastopen_req could potentially be double freed if a malicious
user does the following:
1. Enable TCP_FASTOPEN_CONNECT sockopt and do a connect() on the socket.
2. Call connect() with AF_UNSPEC to disconnect the socket.
3. Make this socket a listening socket by calling listen().
4. Accept incoming connections and generate child sockets. All child
sockets will get a copy of the pointer of fastopen_req.
5. Call close() on all sockets. fastopen_req will get freed multiple
times.
Fixes: 19f6d3f3c842 ("net/tcp-fastopen: Add new API support")
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Wei Wang <weiwan@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-02 14:05:41 -08:00
..
2017-02-27 18:43:47 -08:00
2017-02-15 09:39:39 +01:00
2017-01-16 12:57:48 +01:00
2017-02-13 22:15:03 -05:00
2017-02-04 19:44:22 -05:00
2015-07-29 22:44:04 -07:00
2017-02-02 23:09:08 -05:00
2017-02-15 11:04:11 +01:00
2017-01-17 10:23:08 +01:00
2017-03-01 10:25:56 -08:00
2015-07-24 22:46:11 -07:00
2016-09-28 04:48:00 -04:00
2017-02-08 15:25:18 -05:00
2017-02-27 18:43:47 -08:00
2016-10-30 12:42:58 -04:00
2016-06-30 05:03:36 -04:00
2016-10-20 14:32:22 -04:00
2017-01-09 15:49:12 -05:00
2017-02-09 16:43:45 -05:00
2017-01-20 14:35:51 -05:00
2017-01-13 22:37:16 -05:00
2016-06-05 22:56:42 -04:00
2017-01-18 13:04:29 -05:00
2016-12-29 11:38:31 -05:00
2015-08-28 13:32:36 -07:00
2016-11-03 16:10:26 -04:00
2016-04-27 22:48:23 -04:00
2016-12-24 11:46:01 -08:00
2016-09-16 04:24:07 -04:00
2016-12-24 11:46:01 -08:00
2017-02-11 21:25:18 -05:00
2017-02-21 12:23:53 -05:00
2017-01-30 15:14:22 -05:00
2016-11-18 10:59:15 -05:00
2016-11-18 10:59:15 -05:00
2015-04-03 12:11:15 -04:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00
2017-02-27 18:43:47 -08:00
2017-02-16 21:25:49 -05:00
2017-02-15 11:04:11 +01:00
2016-11-24 12:44:36 +01:00
2017-02-11 02:31:11 -05:00
2017-02-02 23:34:19 -05:00
2016-11-03 15:25:26 -04:00
2017-02-07 13:07:47 -05:00
2017-02-26 11:03:38 -05:00
2017-01-09 13:58:57 -05:00
2017-01-30 15:00:58 -05:00
2016-10-29 17:12:43 -04:00
2016-05-11 14:43:19 -04:00
2016-09-21 00:22:59 -04:00
2016-11-22 13:27:16 -05:00
2016-05-11 14:43:19 -04:00
2016-12-06 11:34:24 -05:00
2016-08-23 23:11:36 -07:00
2017-01-28 10:33:06 -05:00
2016-11-21 13:20:17 -05:00
2016-05-11 14:43:19 -04:00
2016-11-21 13:20:17 -05:00
2016-11-21 13:20:17 -05:00
2017-03-01 15:03:31 -08:00
2017-02-22 16:35:32 -05:00
2016-11-21 13:20:17 -05:00
2017-02-07 13:07:46 -05:00
2017-02-22 16:35:58 -05:00
2016-06-10 23:07:49 -07:00
2016-09-19 20:59:34 -04:00
2017-02-17 15:30:33 -05:00
2017-02-21 13:26:03 -05:00
2016-09-21 00:23:00 -04:00
2017-01-13 22:37:16 -05:00
2016-11-21 13:20:17 -05:00
2017-01-13 22:37:16 -05:00
2016-11-21 13:20:17 -05:00
2016-05-11 14:43:19 -04:00
2016-11-21 13:20:17 -05:00
2016-11-21 13:20:17 -05:00
2016-11-21 13:20:17 -05:00
2017-03-02 14:05:41 -08:00
2016-07-11 13:27:06 -07:00
2016-09-08 16:13:09 -07:00
2016-11-24 15:32:14 -05:00
2016-10-20 14:32:22 -04:00
2016-06-17 20:23:32 -07:00
2017-02-07 16:29:30 -05:00
2016-11-24 15:32:14 -05:00
2017-02-15 11:04:11 +01:00
2017-02-15 11:04:11 +01:00
2015-03-25 14:07:04 -04:00
2015-10-24 06:54:12 -07:00
2017-02-09 10:22:19 +01:00
2017-02-09 10:22:17 +01:00
2017-01-10 10:57:12 +01:00