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 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 versions
Linux kernel versions
4.2
and later are affected. Fixed in
4.9.337,
4.14.303,
4.19.270,
5.4.229,
5.10.163,
5.15.86,
6.0.16,
6.1.2,
6.2
and their respective stable series.
References
The following references provide additional information about CVE-2022-50840 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/1895e908b3ae66a5312fd1b2cdda2da82993dca7
-
PatchKernel patch commithttps://git.kernel.org/stable/c/3007f96ca20c848d0b1b052df6d2cb5ae5586e78
-
PatchKernel patch commithttps://git.kernel.org/stable/c/3772319e40527e6a5f2ec1d729e01f271d818f5c
Frequently asked questions
-
What is CVE-2022-50840?
CVE-2022-50840 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 4.2 onward and has been patched in 4.9.337, 4.14.303, 4.19.270 and others. CVE-2022-50840 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2022-50840?
Yes — CVE-2022-50840 has been patched. Fixed versions include 4.9.337, 4.14.303, 4.19.270 and others. If you are running Linux kernel 4.2 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2022-50840 actively exploited?
No — CVE-2022-50840 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.