]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:50:18 +0000 (19:50 -0600)
commit01b8331ae06d184da6231493fc6dfcd3283f7aab
tree027132729355641bbffb2c165c6f813b763dfaf7
parente4e05406772bdbfab00b5b510d6e7364c597f017
ext4: avoid arithemetic overflow that can trigger a BUG

BugLink: https://bugs.launchpad.net/bugs/1836287
commit bcd8e91f98c156f4b1ebcfacae675f9cfd962441 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/ext4/ext4.h
fs/ext4/inode.c