Patrick McHardy
86f1ec3231
netfilter: nf_tables: fix userdata length overflow
...
The NFT_USERDATA_MAXLEN is defined to 256, however we only have a u8
to store its size. Introduce a struct nft_userdata which contains a
length field and indicate its presence using a single bit in the rule.
The length field of struct nft_userdata is also a u8, however we don't
store zero sized data, so the actual length is udata->len + 1.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2015-03-04 18:46:06 +01:00
..
2014-11-06 14:59:19 -05:00
2015-02-02 18:27:56 +01:00
2015-02-20 17:35:14 -05:00
2014-12-10 15:33:16 -05:00
2015-03-04 18:46:06 +01:00
2015-02-09 18:45:00 -08:00
2015-02-04 09:14:09 +01:00
2014-11-24 05:16:40 -05:00
2015-01-19 16:02:06 -05:00
2014-10-27 15:51:16 +01:00
2015-02-05 15:37:41 -08:00
2014-10-25 08:07:30 +02:00
2014-11-24 05:16:42 -05:00
2014-09-18 10:54:36 +02:00
2015-01-27 17:09:04 -08:00
2014-11-10 13:27:49 -05:00
2014-11-10 13:27:49 -05:00
2015-02-09 14:03:53 -08:00
2015-01-23 10:30:47 +01:00
2014-12-19 00:19:23 +01:00
2015-02-11 15:12:09 -08:00
2015-02-11 14:46:37 -05:00
2014-08-22 19:57:23 -07:00
2014-11-19 16:23:49 -05:00
2014-10-30 14:54:11 -04:00
2014-09-08 09:51:29 +09:00
2014-09-16 10:08:49 +02:00
2015-02-05 00:40:22 -08:00
2014-11-12 15:01:35 -05:00
2014-09-30 01:02:26 -04:00
2015-01-27 16:59:56 -08:00
2015-01-28 23:04:15 -08:00
2015-01-18 01:56:32 -05:00
2014-11-05 16:30:03 -05:00
2014-12-19 00:19:23 +01:00
2014-10-14 13:15:15 -04:00
2014-11-05 16:59:04 -05:00
2014-11-26 15:45:04 -05:00
2015-01-05 22:55:24 -05:00
2014-09-08 09:51:29 +09:00
2015-01-05 22:44:46 -05:00
2014-09-08 16:42:42 -07:00
2014-08-24 18:09:23 -07:00
2015-01-05 22:55:24 -05:00
2015-01-19 14:32:03 -05:00
2014-12-31 18:25:54 -05:00
2015-01-19 14:32:03 -05:00
2014-10-02 18:30:58 +02:00
2015-02-05 14:33:28 -08:00
2015-02-09 14:35:57 -08:00
2014-11-24 04:28:49 -05:00
2014-10-14 02:18:27 +02:00
2014-12-10 15:21:24 -05:00
2014-12-10 15:21:24 -05:00
2015-01-27 11:10:13 +01:00
2014-12-19 00:19:23 +01:00
2014-09-22 16:23:15 -04:00
2014-11-05 23:52:33 -08:00
2014-12-26 17:07:08 -05:00
2015-01-19 14:21:18 -05:00
2014-08-07 20:55:21 -04:00
2015-01-18 01:03:45 -05:00
2014-12-19 00:19:23 +01:00
2015-02-04 01:34:14 -05:00
2014-10-06 18:02:32 -04:00
2015-01-13 17:51:08 -05:00
2014-12-17 11:49:55 +01:00
2015-01-15 18:26:16 -05:00
2015-01-19 14:21:26 -05:00
2015-01-31 17:49:37 -08:00
2014-10-15 07:48:18 +02:00
2015-02-12 18:54:10 -08:00
2015-02-01 23:16:34 -08:00
2015-02-09 18:45:00 -08:00
2015-01-24 23:15:40 -08:00
2014-10-01 21:35:51 -04:00
2015-02-04 01:34:15 -05:00
2015-02-11 15:12:13 -08:00
2014-09-05 17:35:28 -07:00
2014-09-02 13:37:56 +02:00