Florian Westphal
133fd41eb2
netfilter: x_tables: fix compat match/target pad out-of-bound write
...
stable inclusion
from linux-4.19.188
commit 12ec80252edefff00809d473a47e5f89c7485499
category: bugfix
issue: #I42HLL
CVE: CVE-2021-22555
--------------------------------
commit b29c457a6511435960115c0f548c4360d5f4801d upstream.
xt_compat_match/target_from_user doesn't check that zeroing the area
to start of next rule won't write past end of allocated ruleset blob.
Remove this code and zero the entire blob beforehand.
Reported-by: syzbot+cfc0247ac173f597aaaa@syzkaller.appspotmail.com
Reported-by: Andy Nguyen <theflow@google.com>
Fixes: 9fa492cdc160c ("[NETFILTER]: x_tables: simplify compat API")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Yu Changchun <yuchangchun1@huawei.com>
2021-08-03 10:05:37 +08:00
..
2020-06-30 23:17:12 -04:00
2020-10-30 10:38:31 +01:00
2021-05-31 17:14:52 +08:00
2019-05-04 09:20:12 +02:00
2018-08-03 21:12:12 +02:00
2019-01-22 21:40:29 +01:00
2018-03-20 13:44:14 +01:00
2017-06-19 19:13:21 +02:00
2018-06-28 22:21:32 +09:00
2020-05-20 08:18:43 +02:00
2018-03-20 13:44:14 +01:00
2018-08-03 18:37:55 +02:00
2018-04-17 10:59:43 +02:00
2019-09-21 07:17:01 +02:00
2019-06-15 11:54:05 +02:00
2018-01-08 18:01:26 +01:00
2018-08-03 18:37:55 +02:00
2018-04-24 10:29:14 +02:00
2017-04-26 09:30:22 +02:00
2018-03-30 11:41:18 -04:00
2020-10-07 08:00:09 +02:00
2020-06-03 08:19:49 +02:00
2020-01-14 20:07:08 +01:00
2018-09-11 01:30:25 +02:00
2019-04-17 08:38:46 +02:00
2018-09-11 01:30:25 +02:00
2018-09-11 01:30:25 +02:00
2020-09-17 13:45:24 +02:00
2020-10-30 10:38:24 +01:00
2018-09-11 01:30:25 +02:00
2019-05-16 19:41:24 +02:00
2018-04-24 10:29:14 +02:00
2019-01-13 09:50:57 +01:00
2018-05-06 21:51:37 -04:00
2018-03-30 11:41:18 -04:00
2020-03-18 07:14:20 +01:00
2018-04-24 10:29:14 +02:00
2018-08-07 17:14:15 +02:00
2018-03-20 13:44:14 +01:00
2020-10-30 10:38:24 +01:00
2020-01-27 14:49:59 +01:00
2018-04-24 10:28:45 +02:00
2020-04-02 15:28:19 +02:00
2018-05-23 09:14:05 +02:00
2020-10-29 09:55:15 +01:00
2018-03-27 13:18:09 -04:00
2018-06-26 16:48:40 +02:00
2017-04-06 22:01:38 +02:00
2019-01-13 09:50:59 +01:00
2018-03-20 13:44:14 +01:00
2018-04-24 10:29:12 +02:00
2018-03-20 13:44:14 +01:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2018-04-24 10:29:12 +02:00
2020-05-14 07:57:23 +02:00
2018-04-24 10:29:12 +02:00
2018-05-29 00:25:40 +02:00
2019-12-05 09:20:31 +01:00
2020-01-04 19:13:21 +01:00
2017-11-02 11:10:55 +01:00
2020-03-18 07:14:20 +01:00
2020-09-09 19:04:26 +02:00
2019-04-05 22:33:00 +02:00
2018-07-06 19:31:53 +02:00
2017-07-31 20:41:57 +02:00
2018-08-16 19:37:00 +02:00
2020-06-03 08:19:47 +02:00
2019-04-17 08:38:46 +02:00
2020-09-09 19:04:26 +02:00
2020-05-14 07:57:23 +02:00
2020-09-09 19:04:26 +02:00
2020-09-09 19:04:26 +02:00
2020-01-12 12:17:09 +01:00
2018-08-16 19:37:03 +02:00
2020-01-12 12:17:09 +01:00
2019-11-24 08:21:03 +01:00
2019-10-29 09:19:34 +01:00
2018-06-03 00:02:11 +02:00
2018-08-29 13:04:38 +02:00
2019-05-02 09:58:51 +02:00
2018-04-27 00:00:56 +02:00
2017-07-31 19:01:40 +02:00
2017-03-13 13:45:36 +01:00
2020-01-27 14:50:43 +01:00
2020-10-30 10:38:24 +01:00
2019-08-16 10:12:44 +02:00
2019-05-02 09:58:50 +02:00
2018-05-23 09:50:28 +02:00
2018-06-07 16:14:00 -04:00
2019-10-11 18:21:16 +02:00
2018-01-10 15:32:08 +01:00
2018-07-30 11:52:02 +02:00
2020-06-22 09:05:14 +02:00
2018-11-27 16:13:02 +01:00
2019-05-02 09:58:51 +02:00
2020-01-29 16:43:21 +01:00
2020-09-09 19:04:25 +02:00
2017-04-07 18:24:47 +02:00
2017-09-04 13:25:09 +02:00
2020-01-12 12:17:09 +01:00
2018-01-10 15:32:08 +01:00
2017-03-06 18:22:12 +01:00
2019-11-20 18:46:50 +01:00
2018-04-27 00:00:55 +02:00
2018-08-16 19:36:59 +02:00
2020-01-27 14:50:29 +01:00
2020-05-20 08:18:44 +02:00
2019-10-01 08:26:12 +02:00
2020-01-09 10:18:59 +01:00
2020-03-18 07:14:24 +01:00
2018-07-16 17:51:48 +02:00
2021-08-03 10:05:37 +08:00
2018-02-14 21:05:37 +01:00
2018-06-19 10:43:55 -04:00
2018-02-14 21:05:38 +01:00
2019-04-20 09:16:00 +02:00
2018-08-24 09:58:16 +02:00
2018-08-23 20:26:53 +02:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-07-30 14:07:09 +02:00
2018-06-12 19:35:52 +02:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-08-07 17:14:15 +02:00
2018-02-14 21:05:33 +01:00
2018-02-14 21:05:33 +01:00
2018-02-14 21:05:38 +01:00
2020-02-28 16:39:00 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:33 +01:00
2018-02-14 21:05:37 +01:00
2018-11-27 16:13:03 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:38 +01:00
2018-02-14 21:05:39 +01:00
2018-03-05 23:15:50 +01:00
2018-11-13 11:08:20 -08:00
2018-04-24 10:29:12 +02:00
2019-09-21 07:16:55 +02:00
2018-04-19 13:02:44 +02:00
2018-02-14 21:05:35 +01:00
2018-07-30 14:07:11 +02:00
2018-06-28 22:21:32 +09:00
2019-09-21 07:17:01 +02:00
2018-02-14 21:05:37 +01:00
2018-03-05 23:15:44 +01:00
2018-12-17 09:24:31 +01:00
2020-03-18 07:14:20 +01:00
2018-04-24 10:29:12 +02:00
2017-11-02 11:10:55 +01:00
2017-07-01 09:08:41 -07:00
2018-02-14 21:05:38 +01:00
2018-06-06 14:00:54 +02:00
2018-09-28 14:47:41 +02:00
2018-02-14 21:05:38 +01:00
2018-01-31 14:59:24 +01:00
2018-03-30 11:04:12 +02:00
2018-02-14 21:05:38 +01:00
2019-03-13 14:02:40 -07:00
2018-03-20 13:44:14 +01:00
2018-07-20 22:28:28 -07:00