]> 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)
commit6b0e1897cc7a98a074c2af23932dd673fa0e1733
treed6a8e8a1d4596f0c559efa1dc4d404d1260dc6a1
parent8c077e4dfafd44c14066451f4ac8dfd96e1851cd
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