A use-after-free vulnerability was identified and fixed in the Linux kernel's nvmet-fc module within the nvmet_fc_ls_create_connection() function. The flaw occurs due to premature dropping of a reference to an association object, which can be freed while still in use, leading to a kernel memory access error detected by KASAN. The fix involves holding the lookup reference until the response is fully built and ensuring it is dropped on error paths as well.