Files
Linux/drivers
Jann Horn bb765d1c33 tee: shm: fix use-after-free via temporarily dropped reference
Bump the file's refcount before moving the reference into the fd table,
not afterwards. The old code could drop the file's refcount to zero for a
short moment before calling get_file() via get_dma_buf().

This code can only be triggered on ARM systems that use Linaro's OP-TEE.

Fixes: 967c9cca2c ("tee: generic TEE subsystem")
Signed-off-by: Jann Horn <[email protected]>
Signed-off-by: Jens Wiklander <[email protected]>
2018-05-07 11:50:25 +02:00
..
…
2018-04-19 15:11:50 -07:00
…
…
…
…
…
…
2018-04-27 14:12:43 +02:00
…
2018-04-12 21:46:10 -04:00
…
…
2018-04-18 23:37:25 -04:00
…
…
…
…
2018-05-02 21:47:35 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…