Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dded44f1 authored by Richard Weinberger's avatar Richard Weinberger Committed by Sasha Levin
Browse files

UBI: Validate data_size



[ Upstream commit 281fda27673f833a01d516658a64d22a32c8e072 ]

Make sure that data_size is less than LEB size.
Otherwise a handcrafted UBI image is able to trigger
an out of bounds memory access in ubi_compare_lebs().

Cc: stable@vger.kernel.org
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Reviewed-by: default avatarDavid Gstir <david@sigma-star.at>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 5b12405c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment