In the Linux kernel, the following vulnerability has been resolved: scsi: snic: Fix possible UAF in snictgtcreate() Smatch reports a warning as follows: drivers/scsi/snic/snicdisc.c:307 snictgtcreate() warn: '&tgt->list' not removed from list If deviceadd() fails in snictgtcreate(), tgt will be freed, but tgt->list will not be removed from snic->disc.tgtlist, then list traversal may cause UAF. Remove from snic->disc.tgtlist before free().