CVE-2025-22083 addresses multiple bugs in the Linux kernel's vhost-scsi component related to improper handling of multiple calls to vhost_scsi_set_endpoint without clearing the endpoint first. These bugs include a use-after-free vulnerability, a hang caused by reference count underflow when removing target portal groups (tpgs), and a resource leak that prevents proper removal of tpgs. The vulnerability arises because repeated calls to vhost_scsi_set_endpoint can corrupt internal state and reference counts, leading to memory safety issues and system instability. The patch prevents multiple calls to vhost_scsi_set_endpoint without an intervening call to vhost_scsi_clear_endpoint, enforcing proper lifecycle management of tpgs.