A use-after-free exists in drivers/tee/tee_shm.c in the TEE subsystem in the Linux kernel through 5.15.11. This occurs because of a race condition in tee_shm_get_from_id during an attempt to free a shared memory object.
git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=dfd0743f1d9ea76931510ed150334d571fbab49d
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/log/drivers/tee/tee_shm.c
github.com/pjlantz/optee-qemu/blob/main/README.md
lists.debian.org/debian-lts-announce/2022/03/msg00012.html
lore.kernel.org/lkml/20211215092501.1861229-1-jens.wiklander%40linaro.org/
security.netapp.com/advisory/ntap-20220114-0003/
www.debian.org/security/2022/dsa-5096