Commit 34a906cd authored by Kees Cook's avatar Kees Cook Committed by Zefan Li
Browse files

mac: validate mac_partition is within sector



commit 02e2a5bf upstream.

If md->signature == MAC_DRIVER_MAGIC and md->block_size == 1023, a single
512 byte sector would be read (secsize / 512). However the partition
structure would be located past the end of the buffer (secsize % 512).

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
Signed-off-by: default avatarZefan Li <lizefan@huawei.com>
parent 1483b3cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment