CVE-2022-50840

scsi: snic: Fix possible UAF in snic_tgt_create()

N/A
Published: December 30, 2025 at 12:10 PM UTC
Updated: June 17, 2026 at 05:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.3%

Description

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.2 ≤ v < 4.14.3034.2 ≤ v < 4.19.2704.2 ≤ v < 4.9.3374.2 ≤ v < 5.10.1634.2 ≤ v < 5.15.864.2 ≤ v < 5.4.2294.2 ≤ v < 6.0.164.2 ≤ v < 6.1.24.2 ≤ v < 6.24.2c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa
Vendor states this is fixed in 1895e908b3ae66a5312fd1b2cdda2da82993dca7 (fixed)
Vendor states this is fixed in 3007f96ca20c848d0b1b052df6d2cb5ae5586e78 (fixed)
Vendor states this is fixed in 3772319e40527e6a5f2ec1d729e01f271d818f5c (fixed)
Vendor states this is fixed in 4141cd9e8b3379aea52a85d2c35f6eaf26d14e86 (fixed)
Vendor states this is fixed in 6866154c23fba40888ad6d554cccd4bf2edb755e (fixed)
Vendor states this is fixed in ad27f74e901fc48729733c88818e6b96c813057d (fixed)
Vendor states this is fixed in c7f0f8dab1ae5def57c1a8a9cafd6fabe1dc27cc (fixed)
Vendor states this is fixed in e118df492320176af94deec000ae034cc92be754 (fixed)
Vendor states this is fixed in f9d8b8ba0f1a16cde0b1fc9e80466df76b6db8ff (fixed)
Vendor states this is fixed in 4.14.303 (unaffected)
Vendor states this is fixed in 4.19.270 (unaffected)
Vendor states this is fixed in 4.2 (unaffected)
Vendor states this is fixed in 4.9.337 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 5.4.229 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card