{"cve":"CVE-2022-50840","nvd":{"published":"2025-12-30T13:15:58.570","modified":"2026-06-17T05:24:16.637","status":"Deferred","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: snic: Fix possible UAF in snic_tgt_create()\n\nSmatch reports a warning as follows:\n\ndrivers/scsi/snic/snic_disc.c:307 snic_tgt_create() warn:\n  '&tgt->list' not removed from list\n\nIf device_add() fails in snic_tgt_create(), tgt will be freed, but\ntgt->list will not be removed from snic->disc.tgt_list, then list traversal\nmay cause UAF.\n\nRemove from snic->disc.tgt_list before free().","cvss_v4":null,"cvss_v3":null,"cwes":[],"references":["https://git.kernel.org/stable/c/1895e908b3ae66a5312fd1b2cdda2da82993dca7","https://git.kernel.org/stable/c/3007f96ca20c848d0b1b052df6d2cb5ae5586e78","https://git.kernel.org/stable/c/3772319e40527e6a5f2ec1d729e01f271d818f5c","https://git.kernel.org/stable/c/4141cd9e8b3379aea52a85d2c35f6eaf26d14e86","https://git.kernel.org/stable/c/6866154c23fba40888ad6d554cccd4bf2edb755e"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:18:08.089039631+00:00"},"epss":{"cve":"CVE-2022-50840","score":0.00284,"percentile":0.20954,"date":"2026-10-31"},"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}