commit | 36fa3e50085e3858dd506e4431b9abd1bcb1f542 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Feb 27 19:19:54 2020 +0300 |
committer | Jens Wiklander <jens.wiklander@linaro.org> | Tue Mar 10 08:12:04 2020 +0100 |
tree | 8522be7349384c78ca9d49dd10745c6c80265eec | |
parent | 11a48a5a18c63fd7621bb050228cebf13566e4d8 [diff] |
tee: amdtee: out of bounds read in find_session() The "index" is a user provided value from 0-USHRT_MAX. If it's over TEE_NUM_SESSIONS (31) then it results in an out of bounds read when we call test_bit(index, sess->sess_mask). Fixes: 757cc3e9ff1d ("tee: add AMD-TEE driver") Acked-by: Rijo Thomas <Rijo-john.Thomas@amd.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>