]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: add sanity checks for ea_in_inode
authorTheodore Ts'o <tytso@mit.edu>
Sat, 7 Apr 2018 04:28:49 +0000 (00:28 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 7 Apr 2018 04:28:49 +0000 (00:28 -0400)
commit9db53e3fec3413572a2240bd374e76353fab9cbe
tree25c6664b5847d9dab67dfa93467add5d5a995fc6
parentc52d7eff8c5fb38900e2c702e92f88c6b934c6f2
libext2fs: add sanity checks for ea_in_inode

An inode containing the value for an extended attribute (aka an
ea_in_inode) must not have the INLINE_DATA flag and must have the
EA_INODE flag set.  Enforcing this prevents e2fsck and debugfs crashes
caused by a maliciously crafted file system containing an inode which
has both the EA_INODE and INLINE_DATA flags set, and where that inode
has an extended attribute whose e_value_inum points to itself.

Reported-by: Wen Xu <wen.xu@gatech.edu>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c
lib/ext2fs/ext2_err.et.in
lib/ext2fs/ext_attr.c