UPSTREAM: ext4: do not allow external inodes for inline data
commit 117166efb1ee8f13c38f9e96b258f16d4923f888 upstream.
The inline data feature was implemented before we added support for
external inodes for xattrs. It makes no sense to support that
combination, but the problem is that there are a number of extended
attribute checks that are skipped if e_value_inum is non-zero.
Unfortunately, the inline data code is completely e_value_inum
unaware, and attempts to interpret the xattr fields as if it were an
inline xattr --- at which point, Hilarty Ensues.
This addresses CVE-2018-11412.
TEST=Run image through ext4 file system tests
Reported-by: Jann Horn <firstname.lastname@example.org>
Reviewed-by: Andreas Dilger <email@example.com>
Signed-off-by: Theodore Ts'o <firstname.lastname@example.org>
Fixes: e50e5129f384 ("ext4: xattr-in-inode support")
Signed-off-by: Greg Kroah-Hartman <email@example.com>
Reviewed-by: Guenter Roeck <firstname.lastname@example.org>
Commit-Queue: Guenter Roeck <email@example.com>
Tested-by: Guenter Roeck <firstname.lastname@example.org>
1 file changed