ext4: always verify the magic number in xattr blocks
If there an inode points to a block which is also some other type of metadata block (such as a block allocation bitmap), the buffer_verified flag can be set when it was validated as that other metadata block type; however, it would make a really terrible external attribute block. The reason why we use the verified flag is to avoid constantly reverifying the block. However, it doesn't take much overhead to make sure the magic number of the xattr block is correct, and this will avoid potential crashes. This addresses CVE-2018-10879. https://bugzilla.kernel.org/show_bug.cgi?id=200001 Signed-off-by:Theodore Ts'o <tytso@mit.edu> Reviewed-by:
Andreas Dilger <adilger@dilger.ca> Cc: stable@kernel.org
Loading
-
mentioned in commit 09b2d8bf
-
mentioned in commit c71f0078
-
mentioned in commit c48b5c0f
-
mentioned in commit 2715873f
-
mentioned in commit 45ba3514
-
mentioned in commit 336610c0
-
mentioned in commit 3d855fbf
-
mentioned in commit 985ccebb
-
mentioned in commit ef62a76d
-
mentioned in commit 67b2785a
Please sign in to comment