]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: validate that metadata blocks do not overlap superblock
authorTheodore Ts'o <tytso@mit.edu>
Mon, 1 Aug 2016 04:51:02 +0000 (00:51 -0400)
committerBrian Maly <brian.maly@oracle.com>
Mon, 14 Jan 2019 17:22:14 +0000 (12:22 -0500)
commit204a3af62787b6578771c82a1d9e0ee987598591
treea1fb5f0e60c4f6eeece8d5665ac27a278c7c0da1
parent8d35c5d10338a9e7edca5450a8ffb2b069e41e32
ext4: validate that metadata blocks do not overlap superblock

A number of fuzzing failures seem to be caused by allocation bitmaps
or other metadata blocks being pointed at the superblock.

This can cause kernel BUG or WARNings once the superblock is
overwritten, so validate the group descriptor blocks to make sure this
doesn't happen.

Cc: stable@vger.kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
(cherry picked from commit 829fa70dddadf9dd041d62b82cd7cea63943899d)

Orabug: 29114440
CVE: CVE-2018-1094

Signed-off-by: John Donnelly <john.p.donnelly@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
fs/ext4/super.c