CVE-2022-50840

scsi: snic: Fix possible UAF in snic_tgt_create()

published December 30, 2025

CVSS
—
EPSS
0%
Percentile
19.8
In the wild
Unconfirmed
What it is

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().

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00284 · 19.8th percentile
Published
2025-12-30T12:10Z
EPSS history
Timeline
  • 30 DEC 12:10Z
    scsi: snic: Fix possible UAF in snic_tgt_create()
    cvelistv5