Whamcloud - gitweb
e2fsck: fix potential out-of-bounds read in inc_ea_inode_refs()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 6 Jun 2022 15:39:23 +0000 (11:39 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 6 Jun 2022 15:39:23 +0000 (11:39 -0400)
commit1052048fb8f4ddcc0160eb670ef746ef7ee505a4
tree3dfe089ae5c774f13df3cb417dbf96d3226fa840
parent40196f3b493a55728f8f3a6591d52867ef613e3c
e2fsck: fix potential out-of-bounds read in inc_ea_inode_refs()

If there isn't enough space for a full extended attribute entry,
inc_ea_inode_refs() might end up reading beyond the allocated memory
buffer.

Reported-by: Nils Bars <nils.bars@rub.de>
Reported-by: Moritz Schlögel <moritz.schloegel@rub.de>
Reported-by: Nico Schiller <nico.schiller@rub.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/pass1.c