]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix kernel infoleak via ext4_extent_header
authorAnirudh Rayabharam <mail@anirudhrb.com>
Thu, 6 May 2021 18:56:54 +0000 (00:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:53:03 +0000 (16:53 +0200)
commit37f9dd1adc1c7de079560aac4b053f626e07a281
tree89f6f56793fae9aed9cfc7461ce5e3cc079703ff
parent06ad1fc00dd339d093e768ec5135f766e544e9b4
ext4: fix kernel infoleak via ext4_extent_header

commit ce3aba43599f0b50adbebff133df8d08a3d5fffe upstream.

Initialize eh_generation of struct ext4_extent_header to prevent leaking
info to userspace. Fixes KMSAN kernel-infoleak bug reported by syzbot at:
http://syzkaller.appspot.com/bug?id=78e9ad0e6952a3ca16e8234724b2fa92d041b9b8

Cc: stable@kernel.org
Reported-by: syzbot+2dcfeaf8cb49b05e8f1a@syzkaller.appspotmail.com
Fixes: 59b77af86ffa ("[PATCH] ext3: add extent map support")
Signed-off-by: Anirudh Rayabharam <mail@anirudhrb.com>
Link: https://lore.kernel.org/r/20210506185655.7118-1-mail@anirudhrb.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/extents.c