scsi: snic: Fix possible UAF in snic_tgt_create() (Linux Linux)

CVE-2022-50840
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.28 % · centile 21 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Deferred

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

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < f9d8b8ba0f1a16cde0b1fc9e80466df76b6db8ff ; affected c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < 3772319e40527e6a5f2ec1d729e01f271d818f5c ; affected c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < 3007f96ca20c848d0b1b052df6d2cb5ae5586e78 ; affected c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < 6866154c23fba40888ad6d554cccd4bf2edb755e ; affected c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < ad27f74e901fc48729733c88818e6b96c813057d ; affected c8806b6c9e824f47726f2a9b7fbbe7ebf19306fa < 1895e908b3ae66a5312fd1b2cdda2da82993dca7
Linux · Linuxaffected 4.2 ; unaffected 0 < 4.2 ; unaffected 4.9.337 ≤ 4.9.* ; unaffected 4.14.303 ≤ 4.14.* ; unaffected 4.19.270 ≤ 4.19.* ; unaffected 5.4.229 ≤ 5.4.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD