Liu Song
2f0a77ccae
ubifs: Fix out-of-bounds memory access caused by abnormal value of node_len
...
[ Upstream commit acc5af3efa ]
In “ubifs_check_node”, when the value of "node_len" is abnormal,
the code will goto label of "out_len" for execution. Then, in the
following "ubifs_dump_node", if inode type is "UBIFS_DATA_NODE",
in "print_hex_dump", an out-of-bounds access may occur due to the
wrong "ch->len".
Therefore, when the value of "node_len" is abnormal, data length
should to be adjusted to a reasonable safe range. At this time,
structured data is not credible, so dump the corrupted data directly
for analysis.
Signed-off-by: Liu Song <liu.song11@zte.com.cn >
Signed-off-by: Richard Weinberger <richard@nod.at >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2020-10-01 13:14:40 +02:00
..
2020-08-19 08:15:06 +02:00
2019-08-06 19:06:49 +02:00
2020-09-09 19:04:30 +02:00
2020-08-26 10:31:05 +02:00
2019-12-13 08:51:01 +01:00
2018-12-01 09:37:27 +01:00
2020-09-17 13:45:28 +02:00
2020-06-03 08:19:29 +02:00
2020-10-01 13:14:31 +02:00
2020-10-01 13:14:29 +02:00
2019-08-06 19:06:51 +02:00
2020-05-27 17:37:32 +02:00
2018-11-13 11:08:55 -08:00
2019-07-26 09:14:02 +02:00
2019-05-08 07:21:48 +02:00
2019-03-23 20:09:59 +01:00
2020-08-19 08:15:02 +02:00
2020-02-28 16:38:59 +01:00
2019-12-05 09:20:32 +01:00
2020-01-27 14:50:02 +01:00
2020-09-09 19:04:28 +02:00
2020-10-01 13:14:37 +02:00
2020-09-23 12:10:59 +02:00
2020-06-22 09:05:08 +02:00
2018-12-17 09:24:40 +01:00
2020-07-29 10:16:46 +02:00
2020-10-01 13:14:28 +02:00
2019-12-01 09:17:10 +01:00
2020-04-17 10:48:52 +02:00
2018-08-17 16:20:28 -07:00
2018-08-25 12:42:33 -07:00
2019-05-22 07:37:40 +02:00
2018-08-21 11:37:41 +02:00
2020-09-03 11:24:24 +02:00
2020-08-26 10:31:01 +02:00
2020-01-27 14:50:33 +01:00
2019-12-13 08:52:43 +01:00
2019-12-13 08:51:59 +01:00
2020-08-21 11:05:38 +02:00
2020-09-23 12:10:58 +02:00
2020-10-01 13:14:38 +02:00
2020-06-22 09:05:03 +02:00
2020-06-30 23:17:00 -04:00
2018-08-17 16:20:27 -07:00
2020-08-21 11:05:33 +02:00
2020-02-24 08:34:53 +01:00
2020-07-22 09:32:10 +02:00
2020-06-22 09:05:06 +02:00
2020-08-19 08:15:04 +02:00
2020-01-12 12:17:20 +01:00
2020-02-24 08:34:52 +01:00
2020-08-26 10:30:59 +02:00
2018-08-18 11:44:53 -07:00
2018-12-17 09:24:30 +01:00
2020-10-01 13:14:40 +02:00
2020-02-24 08:34:45 +01:00
2020-08-21 11:05:38 +02:00
2020-10-01 13:14:37 +02:00
2020-06-22 09:05:01 +02:00
2020-06-03 08:19:41 +02:00
2019-07-03 13:14:44 +02:00
2019-11-06 13:05:37 +01:00
2020-06-25 15:33:06 +02:00
2020-09-03 11:24:24 +02:00
2020-01-14 20:06:57 +01:00
2020-01-09 10:19:07 +01:00
2020-05-14 07:57:21 +02:00
2020-03-05 16:42:12 +01:00
2020-10-01 13:14:27 +02:00
2019-03-05 17:58:50 +01:00
2020-01-12 12:17:20 +01:00
2020-02-11 04:34:08 -08:00
2020-09-09 19:04:27 +02:00
2020-05-20 08:18:50 +02:00
2018-08-15 23:03:20 -05:00
2018-08-21 18:19:09 -07:00
2020-05-27 17:37:29 +02:00
2020-04-17 10:48:51 +02:00
2020-09-03 11:24:28 +02:00
2020-03-25 08:06:14 +01:00
2019-05-31 06:46:05 -07:00
2018-11-21 09:19:14 +01:00
2019-12-13 08:52:56 +01:00
2020-04-02 15:28:21 +02:00
2020-01-09 10:19:00 +01:00
2018-08-17 16:20:29 -07:00
2020-03-05 16:42:20 +01:00
2020-04-29 16:31:26 +02:00
2019-05-25 18:23:26 +02:00
2020-03-18 07:14:21 +01:00
2019-05-04 09:20:11 +02:00
2020-05-02 17:26:01 +02:00
2019-12-01 09:17:04 +01:00
2020-01-04 19:13:26 +01:00
2019-08-25 10:47:43 +02:00
2020-08-26 10:31:02 +02:00
2019-12-17 20:35:43 +01:00
2019-10-11 18:21:39 +02:00
2018-08-26 11:48:42 -07:00
2018-08-13 20:56:23 -07:00
2020-01-04 19:13:18 +01:00
2020-08-11 15:32:34 +02:00