]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: avoid arithemetic overflow that can trigger a BUG
authorTheodore Ts'o <tytso@mit.edu>
Sat, 1 Sep 2018 16:45:04 +0000 (12:45 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 1 Sep 2018 16:45:04 +0000 (12:45 -0400)
commitd0184b1b3a0d129cf4770254fbed0d6605d20bb6
treed6a8e8a1d4596f0c559efa1dc4d404d1260dc6a1
parentf859316e5e98c1abdfc0a69b313c637c17127d3c
ext4: avoid arithemetic overflow that can trigger a BUG

A maliciously crafted file system can cause an overflow when the
results of a 64-bit calculation is stored into a 32-bit length
parameter.

https://bugzilla.kernel.org/show_bug.cgi?id=200623

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reported-by: Wen Xu <wen.xu@gatech.edu>
Cc: stable@vger.kernel.org
fs/ext4/ext4.h
fs/ext4/inode.c