diff options
author | Jan Kara <jack@suse.cz> | 2022-08-22 13:48:32 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-09-29 23:01:40 -0400 |
commit | 61a1d87a324ad5e3ed27c6699dfc93218fcf3201 (patch) | |
tree | 9023d9cdc8222778859141d2a750c6d7d652376b /fs/jbd2/commit.c | |
parent | 5bdf402a05fafc55c876b9993b4c948bb2bc2361 (diff) | |
download | linux-61a1d87a324ad5e3ed27c6699dfc93218fcf3201.tar.gz linux-61a1d87a324ad5e3ed27c6699dfc93218fcf3201.tar.bz2 linux-61a1d87a324ad5e3ed27c6699dfc93218fcf3201.zip |
ext4: fix check for block being out of directory size
The check in __ext4_read_dirblock() for block being outside of directory
size was wrong because it compared block number against directory size
in bytes. Fix it.
Fixes: 65f8ea4cd57d ("ext4: check if directory block is within i_size")
CVE: CVE-2022-1184
CC: stable@vger.kernel.org
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Link: https://lore.kernel.org/r/20220822114832.1482-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions