Bug 2426067 (CVE-2022-50840) - CVE-2022-50840 kernel: scsi: snic: Fix possible UAF in snic_tgt_create()
Summary: CVE-2022-50840 kernel: scsi: snic: Fix possible UAF in snic_tgt_create()
Keywords:
Status: NEW
Alias: CVE-2022-50840
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-12-30 13:06 UTC by OSIDB Bzimport
Modified: 2026-06-29 18:01 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-12-30 13:06:16 UTC
In the Linux kernel, the following vulnerability has been resolved:

scsi: snic: Fix possible UAF in snic_tgt_create()

Smatch reports a warning as follows:

drivers/scsi/snic/snic_disc.c:307 snic_tgt_create() warn:
  '&tgt->list' not removed from list

If device_add() fails in snic_tgt_create(), tgt will be freed, but
tgt->list will not be removed from snic->disc.tgt_list, then list traversal
may cause UAF.

Remove from snic->disc.tgt_list before free().


Note You need to log in before you can comment on or make changes to this bug.