Files
twx-linux/include/linux
Cong Wang 5460d62d66 netfilter: clear skb->next in NF_HOOK_LIST()
NF_HOOK_LIST() uses list_del() to remove skb from the linked list,
however, it is not sufficient as skb->next still points to other
skb. We should just call skb_list_del_init() to clear skb->next,
like the rest places which using skb list.

This has been fixed in upstream by commit ca58fbe06c
("netfilter: add and use nf_hook_slow_list()").

Fixes: 9f17dbf04d ("netfilter: fix use-after-free in NF_HOOK_LIST")
Reported-by: liuzx@knownsec.com
Tested-by: liuzx@knownsec.com
Cc: Florian Westphal <fw@strlen.de>
Cc: Edward Cree <ecree@solarflare.com>
Cc: stable@vger.kernel.org # between 4.19 and 5.4
Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-02 08:48:07 +01:00
..
…
2019-12-13 08:51:18 +01:00
…
…
…
…
…
…
2019-12-17 20:35:45 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-05-26 09:16:44 +02:00
…
…
…
…
…
…
…
2011-03-11 14:25:50 +00:00
…
2019-10-05 13:10:03 +02:00
2019-07-03 13:14:48 +02:00
2018-05-09 17:25:13 +02:00
…
…
2018-06-19 10:06:29 -07:00
…
…
…
…
…
…
2018-03-26 15:09:38 +02:00
2018-08-22 10:52:48 -07:00
…
…
2012-02-20 19:46:36 +11:00
…
…
2016-10-28 08:48:16 -06:00
…
…
2012-10-16 18:49:15 -07:00
…
2018-01-01 12:40:27 -07:00
…
…
…
2019-11-24 08:19:14 +01:00
2017-08-07 17:22:14 +02:00
…
…
…
2018-07-12 10:04:29 -04:00
…
…
2020-09-03 11:24:28 +02:00
2018-07-27 09:57:23 +10:00
2020-03-25 08:06:14 +01:00
2018-06-28 20:32:51 +09:00
…
…
…
2010-02-09 11:13:56 +01:00
…
2019-10-17 13:45:42 -07:00
…
…
…
…
…
…
…
…
…
…
2018-03-26 08:53:43 -06:00
…
…
…
2006-10-10 15:37:22 -07:00
2018-08-08 11:06:20 +02:00
…
…
2018-06-22 13:43:27 +09:00
…
…
…
…
…
2014-03-13 12:11:00 +10:30
2016-01-28 14:19:12 -08:00
…
…
…
…
2019-12-13 08:52:43 +01:00
2018-04-11 10:28:38 -07:00
…
2017-11-15 18:21:01 -08:00
…
…
2018-07-12 21:35:28 +02:00
2017-12-01 13:09:40 -08:00
…
…
…
…
…
…
2017-02-24 17:46:57 -08:00
…
…
2018-06-05 08:50:16 -04:00
2018-06-07 17:34:35 -07:00
…
2018-04-11 10:28:32 -07:00
2019-12-31 16:35:38 +01:00
2020-07-29 10:16:52 +02:00
…
2018-03-26 13:14:43 -04:00
2018-03-26 13:14:43 -04:00
…
…
…
…
…
…
2016-04-25 15:09:11 -04:00
…
2018-08-22 10:52:45 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-04-11 10:28:39 -07:00
2018-01-31 17:18:37 -08:00
…
2017-11-09 10:23:28 +01:00
…
…
…
…
…
…
2020-03-18 07:14:17 +01:00
…
…
…
…
…
2017-12-16 02:05:48 +01:00
…
…
…
2019-06-11 12:20:52 +02:00
2018-07-20 01:11:45 +02:00
…
…
…
…
…
…
…
…
…
…
…
2020-04-17 10:48:47 +02:00
…
…
2020-04-02 15:28:22 +02:00
…
…
…
…
…
…
…
…
…
2018-05-03 15:55:23 -07:00
…
2018-08-16 12:14:42 -07:00
…
…
…
2013-04-30 15:50:12 +05:30
2018-06-20 11:35:56 +02:00
…
…
…
…
…
…
…
…
2018-11-13 11:08:51 -08:00
…
…
2015-10-01 09:57:59 -07:00
…
…
…
…
…
2020-05-20 08:18:45 +02:00
…
…
…
…
2018-02-06 18:32:44 -08:00
…
2014-11-28 16:08:16 +01:00
2017-12-20 09:53:54 -07:00
…
…
…
2020-04-02 15:28:23 +02:00
…
…
…
…
2017-08-15 09:02:07 -07:00
…
2013-10-17 15:53:09 -04:00
…
…
…
…