Silvio Cesare 353748a359 UBIFS: Fix potential integer overflow in allocation
There is potential for the size and len fields in ubifs_data_node to be
too large causing either a negative value for the length fields or an
integer overflow leading to an incorrect memory allocation. Likewise,
when the len field is small, an integer underflow may occur.

Signed-off-by: Silvio Cesare <silvio.cesare@gmail.com>
Fixes: 1e51764a3c2ac ("UBIFS: add new flash file system")
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
2018-06-12 16:19:22 -07:00
..
2012-08-31 17:32:58 +03:00
2018-05-22 14:27:54 -04:00
2018-06-07 15:53:15 +02:00
2017-07-14 22:49:06 +02:00
2018-06-07 15:53:15 +02:00
2018-04-04 23:48:10 +02:00
2016-12-12 23:07:38 +01:00