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.
The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.
Link | Tags |
---|---|
https://syzkaller.appspot.com/bug?id=457491c4672d7b52c1007db213d93e47c711fae6 | third party advisory patch |
https://sites.google.com/view/syzscope/kasan-use-after-free-read-in-ucma_close-2 | third party advisory patch |
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f5449e74802c1112dea984aec8af7a33c4516af1 | patch vendor advisory |
https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.10 | release notes vendor advisory |
https://security.netapp.com/advisory/ntap-20210720-0004/ | third party advisory |
https://www.starwindsoftware.com/security/sw-20220802-0002/ | third party advisory |