Florian Westphal
21b27b2baa
netfilter: nf_queue: fix possible use-after-free
...
commit c3873070247d9e3c7a6b0cf9bf9b45e8018427b1 upstream.
Eric Dumazet says:
The sock_hold() side seems suspect, because there is no guarantee
that sk_refcnt is not already 0.
On failure, we cannot queue the packet and need to indicate an
error. The packet will be dropped by the caller.
v2: split skb prefetch hunk into separate change
Fixes: 271b72c7fa82c ("udp: RCU handling for Unicast packets.")
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-08 19:00:57 +01:00
..
2021-08-15 13:01:02 +02:00
2021-06-10 12:42:36 +02:00
2015-09-21 16:03:04 -07:00
2022-03-08 19:00:57 +01:00
2019-08-25 10:51:42 +02:00
2021-12-08 08:45:04 +01:00
2019-03-23 13:19:44 +01:00
2021-09-26 13:36:19 +02:00
2018-08-24 13:12:37 +02:00
2016-06-15 20:41:22 -07:00
2020-06-03 08:16:25 +02:00
2020-08-21 11:01:55 +02:00
2015-09-17 13:20:05 +02:00
2016-09-08 11:10:12 +01:00
2021-08-04 11:58:01 +02:00
2018-08-22 07:47:13 +02:00
2019-06-11 12:22:49 +02:00
2019-02-23 09:05:59 +01:00
2016-02-09 04:45:49 -05:00
2015-07-27 01:05:24 -07:00
2020-12-11 13:37:57 +01:00
2015-11-18 16:17:38 -05:00
2016-06-27 15:06:17 -04:00
2021-06-03 08:23:28 +02:00
2016-07-08 12:20:57 +02:00
2022-03-02 11:32:02 +01:00
2017-02-18 15:11:41 +01:00
2016-04-19 20:09:25 -04:00
2016-04-25 16:44:27 -04:00
2016-06-25 12:19:35 -04:00
2016-04-25 16:44:27 -04:00
2016-06-09 23:41:03 -07:00
2016-08-26 11:55:18 -07:00
2015-09-17 17:18:37 -07:00
2016-09-23 08:38:50 -04:00
2016-02-16 20:21:48 -05:00
2022-02-16 12:43:54 +01:00
2015-10-08 04:27:02 -07:00
2020-07-22 09:10:48 +02:00
2015-09-23 15:33:15 -07:00
2020-03-20 09:07:39 +01:00
2020-03-11 07:53:05 +01:00
2016-09-10 23:12:53 -07:00
2016-05-20 18:03:16 -04:00
2019-11-10 11:23:31 +01:00
2019-11-10 11:23:31 +01:00
2016-06-07 16:37:14 -07:00
2020-07-22 09:10:48 +02:00
2016-06-17 20:23:32 -07:00
2016-08-18 01:17:32 -04:00
2019-03-19 13:14:10 +01:00
2016-07-25 17:55:43 -07:00
2016-03-14 12:19:46 -04:00
2021-03-03 17:44:46 +01:00
2016-09-12 11:45:45 +02:00
2016-01-04 20:40:41 +01:00
2016-10-14 10:59:15 -04:00
2015-12-15 23:25:20 -05:00
2016-03-22 15:45:44 -04:00
2016-04-04 22:11:20 -04:00
2016-05-20 18:03:17 -04:00
2020-09-12 11:47:38 +02:00
2020-12-11 13:37:58 +01:00
2019-05-02 09:32:06 +02:00
2020-01-04 13:41:12 +01:00
2018-10-18 09:13:23 +02:00
2018-05-16 10:08:41 +02:00
2019-02-23 09:05:59 +01:00
2016-03-13 23:55:13 -04:00
2017-09-20 08:19:53 +02:00
2021-07-28 09:14:25 +02:00
2019-07-21 09:05:57 +02:00
2019-01-31 08:12:33 +01:00
2016-09-17 10:13:07 -04:00
2019-11-12 19:15:57 +01:00
2022-02-08 18:15:27 +01:00
2019-09-16 08:19:33 +02:00
2020-05-20 08:15:30 +02:00
2017-08-11 08:49:34 -07:00
2016-08-17 19:36:23 -04:00
2019-02-06 17:33:27 +01:00
2019-11-06 12:18:24 +01:00
2021-08-04 11:58:03 +02:00
2021-11-26 11:48:39 +01:00
2017-02-18 15:11:42 +01:00
2018-05-30 07:50:28 +02:00
2016-07-08 13:23:12 +02:00
2015-10-23 06:26:42 -07:00
2016-10-03 02:00:22 -04:00
2016-10-04 02:11:51 -04:00
2016-06-15 20:41:23 -07:00
2020-01-12 11:24:19 +01:00
2019-04-17 08:36:46 +02:00
2016-07-05 09:06:29 -07:00
2016-06-27 15:06:18 -04:00
2017-10-12 11:51:25 +02:00
2015-12-08 22:02:33 -05:00
2018-05-16 10:08:41 +02:00
2021-12-08 08:45:03 +01:00
2016-03-23 22:09:58 -04:00
2016-09-28 05:02:44 -04:00
2016-08-10 17:19:02 -07:00
2016-08-15 10:55:53 -07:00
2016-04-07 16:53:30 -04:00
2016-02-11 03:54:14 -05:00
2021-04-16 11:59:07 +02:00
2018-05-30 07:50:30 +02:00
2016-04-04 22:11:19 -04:00
2018-05-30 07:50:36 +02:00
2021-03-30 14:41:42 +02:00
2022-01-27 08:47:42 +01:00
2016-02-08 10:30:42 -05:00
2018-04-20 08:21:07 +02:00
2016-04-28 11:49:45 -04:00
2016-01-19 14:44:23 -05:00
2021-10-09 13:25:58 +02:00
2016-08-28 23:32:41 -04:00
2016-09-28 04:48:00 -04:00
2020-05-02 17:23:08 +02:00
2015-07-09 15:12:20 -07:00
2016-05-03 16:08:14 -04:00
2015-10-26 22:24:22 -07:00
2016-06-17 20:23:32 -07:00
2016-10-20 14:45:52 -04:00
2018-03-11 16:21:32 +01:00
2017-07-21 07:42:18 +02:00
2018-04-13 19:48:00 +02:00
2020-10-14 09:48:16 +02:00