An issue was discovered in the Linux kernel before 5.10. drivers/infiniband/core/ucma.c has a use-after-free because the ctx is reached via the ctx_list in some ucma_migrate_id situations where ucma_close is called, aka CID-f5449e74802c.
https://www.starwindsoftware.com/security/sw-20220802-0002/
https://syzkaller.appspot.com/bug?id=457491c4672d7b52c1007db213d93e47c711fae6
https://sites.google.com/view/syzscope/kasan-use-after-free-read-in-ucma_close-2