android_kernel_samsung_univ.../fs/ubifs
Silvio Cesare 9c3a27c0ca UBIFS: Fix potential integer overflow in allocation
commit 353748a359f1821ee934afc579cf04572406b420 upstream.

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: 1e51764a3c ("UBIFS: add new flash file system")
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-03 11:21:32 +02:00
..
budget.c
commit.c
compress.c
debug.c
debug.h
dir.c ubifs: Fix regression in ubifs_readdir() 2016-11-10 16:36:33 +01:00
file.c UBIFS: Implement ->migratepage() 2016-07-27 09:47:31 -07:00
find.c
gc.c
io.c
ioctl.c
journal.c UBIFS: Fix potential integer overflow in allocation 2018-07-03 11:21:32 +02:00
Kconfig ubifs: introduce UBIFS_ATIME_SUPPORT to ubifs 2015-11-07 11:35:08 +01:00
key.h
log.c
lprops.c
lpt_commit.c
lpt.c
Makefile
master.c
misc.h fs/ubifs: remove unnecessary new_valid_dev check 2015-11-06 23:26:48 +01:00
orphan.c
recovery.c UBIFS: Delete unnecessary checks before the function call "iput" 2015-11-06 23:26:52 +01:00
replay.c
sb.c
scan.c
shrinker.c
super.c ubifs: Check ubifs_wbuf_sync() return code 2018-04-24 09:32:05 +02:00
tnc_commit.c ubifs: Fix assertion in layout_in_gaps() 2016-09-15 08:27:53 +02:00
tnc_misc.c
tnc.c ubifs: Fix journal replay wrt. xattr nodes 2017-01-26 08:23:48 +01:00
ubifs-media.h
ubifs.h Merge branch 'for-linus-3' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2015-11-13 18:02:30 -08:00
xattr.c ubifs: Fix xattr_names length in exit paths 2016-10-28 03:01:35 -04:00