CVE-2022-50840
published 2025-12-30CVE-2022-50840: 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…
PriorityP421
EPSS
0.25%
16.1th percentile
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
23 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | linux | < linux 6.1.4-1 (bookworm) | linux 6.1.4-1 (bookworm) |
| linux | linux | — | — |
| linux | linux | >= c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < f9d8b8ba0f1a16cde0b1fc9e80466df76b6db8ff | f9d8b8ba0f1a16cde0b1fc9e80466df76b6db8ff |
| linux | linux | >= c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < 3772319e40527e6a5f2ec1d729e01f271d818f5c | 3772319e40527e6a5f2ec1d729e01f271d818f5c |
| linux | linux | >= c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < 3007f96ca20c848d0b1b052df6d2cb5ae5586e78 | 3007f96ca20c848d0b1b052df6d2cb5ae5586e78 |
| linux | linux | >= c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < 6866154c23fba40888ad6d554cccd4bf2edb755e | 6866154c23fba40888ad6d554cccd4bf2edb755e |
| linux | linux | >= c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < ad27f74e901fc48729733c88818e6b96c813057d | ad27f74e901fc48729733c88818e6b96c813057d |
| linux | linux | >= c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < 1895e908b3ae66a5312fd1b2cdda2da82993dca7 | 1895e908b3ae66a5312fd1b2cdda2da82993dca7 |
| linux | linux | >= c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < c7f0f8dab1ae5def57c1a8a9cafd6fabe1dc27cc | c7f0f8dab1ae5def57c1a8a9cafd6fabe1dc27cc |
| linux | linux | >= c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < 4141cd9e8b3379aea52a85d2c35f6eaf26d14e86 | 4141cd9e8b3379aea52a85d2c35f6eaf26d14e86 |
| linux | linux | >= c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < e118df492320176af94deec000ae034cc92be754 | e118df492320176af94deec000ae034cc92be754 |
| linux | linux_kernel | >= 0 < 5.10.178-1 | 5.10.178-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 0 < 6.1.4-1 | 6.1.4-1 |
| linux | linux_kernel | >= 4.10.0 < 4.14.303 | 4.14.303 |
| linux | linux_kernel | >= 4.15.0 < 4.19.270 | 4.19.270 |
| linux | linux_kernel | >= 4.2.0 < 4.9.337 | 4.9.337 |
| linux | linux_kernel | >= 4.20.0 < 5.4.229 | 5.4.229 |
| linux | linux_kernel | >= 5.11.0 < 5.15.86 | 5.15.86 |
| linux | linux_kernel | >= 5.16.0 < 6.0.16 | 6.0.16 |
| linux | linux_kernel | >= 5.5.0 < 5.10.163 | 5.10.163 |
| linux | linux_kernel | >= 6.1.0 < 6.1.2 | 6.1.2 |
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
kernel: scsi: snic: Fix possible UAF in snic_tgt_create()
vendor_redhat·2025-12-30
CVE-2022-50840 kernel: scsi: snic: Fix possible UAF in snic_tgt_create()
kernel: scsi: snic: Fix possible UAF in snic_tgt_create()
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().
Package: kernel (Red Hat Enterprise Linux 10) - Not affected
Package: kernel (Red Hat Enterprise Linux 6) - Not affected
Package: kernel (Red Hat Enterprise Linux 7) - Not affected
Package: kernel-rt (Red Hat Enterprise Linux 7) - Not affected
Package: kernel (Red Hat Enterprise Lin
Debian
CVE-2022-50840: linux - In the Linux kernel, the following vulnerability has been resolved: scsi: snic:...
vendor_debian·2022
CVE-2022-50840 CVE-2022-50840: linux - In the Linux kernel, the following vulnerability has been resolved: scsi: snic:...
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().
Scope: local
bookworm: resolved (fixed in 6.1.4-1)
bullseye: resolved (fixed in 5.10.178-1)
forky: resolved (fixed in 6.1.4-1)
sid: resolved (fixed in 6.1.4-1)
trixie: resolved (fixed in 6.1.4-1)
GHSA
GHSA-rwh2-wwjg-8c2j: In the Linux kernel, the following vulnerability has been resolved:
scsi: snic: Fix possible UAF in snic_tgt_create()
Smatch reports a warning as fo
ghsa_unreviewed·2025-12-30
CVE-2022-50840 GHSA-rwh2-wwjg-8c2j: In the Linux kernel, the following vulnerability has been resolved:
scsi: snic: Fix possible UAF in snic_tgt_create()
Smatch reports a warning as fo
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().
OSV
scsi: snic: Fix possible UAF in snic_tgt_create()
osv·2025-12-30
CVE-2022-50840 scsi: snic: Fix possible UAF in snic_tgt_create()
scsi: snic: Fix possible UAF in snic_tgt_create()
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().
OSV
CVE-2022-50840: In the Linux kernel, the following vulnerability has been resolved: scsi: snic: Fix possible UAF in snic_tgt_create() Smatch reports a warning as foll
osv·2025-12-30
CVE-2022-50840 CVE-2022-50840: In the Linux kernel, the following vulnerability has been resolved: scsi: snic: Fix possible UAF in snic_tgt_create() Smatch reports a warning as foll
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().
No detection rules found.
No public exploits indexed.
Wiz
CVE-2022-50840 Impact, Exploitability, and Mitigation Steps | Wiz
blogs_wiz
CVE-2022-50840 CVE-2022-50840 Impact, Exploitability, and Mitigation Steps | Wiz
## CVE-2022-50840 :
Linux Kernel vulnerability analysis and mitigation
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().
Source : NVD
Published December 30, 2025
CNA Score N/A
Affected Technologies
Linux Kernel
Linux Debian
Has Public Exploit No
Has CISA KEV Exploit No
CISA KEV Release Date N/A
CISA KEV Due Date N/A
Exploitation Probability Percentile (EPSS) 15.2
Exploitation
Bugzilla
CVE-2022-50840 kernel: scsi: snic: Fix possible UAF in snic_tgt_create()
bugzilla·2025-12-30
CVE-2022-50840 CVE-2022-50840 kernel: scsi: snic: Fix possible UAF in snic_tgt_create()
CVE-2022-50840 kernel: scsi: snic: Fix possible UAF in snic_tgt_create()
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().
Discussion:
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025123019-CVE-2022-50840-678c@gregkh/T
https://git.kernel.org/stable/c/1895e908b3ae66a5312fd1b2cdda2da82993dca7https://git.kernel.org/stable/c/3007f96ca20c848d0b1b052df6d2cb5ae5586e78https://git.kernel.org/stable/c/3772319e40527e6a5f2ec1d729e01f271d818f5chttps://git.kernel.org/stable/c/4141cd9e8b3379aea52a85d2c35f6eaf26d14e86https://git.kernel.org/stable/c/6866154c23fba40888ad6d554cccd4bf2edb755ehttps://git.kernel.org/stable/c/ad27f74e901fc48729733c88818e6b96c813057dhttps://git.kernel.org/stable/c/c7f0f8dab1ae5def57c1a8a9cafd6fabe1dc27cchttps://git.kernel.org/stable/c/e118df492320176af94deec000ae034cc92be754https://git.kernel.org/stable/c/f9d8b8ba0f1a16cde0b1fc9e80466df76b6db8ff
2025-12-30
Published