Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: ensure that supplied range matches MOBJ
In set_rmem_param() if the MOBJ is found by the cookie it's verified to represent non-secure shared memory. Prior to this patch the supplied sub-range to be used of the MOBJ was not checked here and relied on later checks further down the chain. Those checks seems to be enough for user TAs, but not for pseudo TAs where the size isn't checked. This patch adds a check for offset and size to see that they remain inside the memory covered by the MOBJ. Fixes: OP-TEE-2018-0004: "Unchecked parameters are passed through from REE". Signed-off-by: Jens Wiklander <firstname.lastname@example.org> Tested-by: Joakim Bech <email@example.com> (QEMU v7, v8) Reviewed-by: Joakim Bech <firstname.lastname@example.org> Reported-by: Riscure <email@example.com> Reported-by: Alyssa Milburn <firstname.lastname@example.org> Acked-by: Etienne Carriere <email@example.com>
- Loading branch information