scsi: lpfc: Fix null pointer dereference in lpfc_prep_els_iocb() (Linux Linux)

CVE-2021-47045
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 15 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Fix null pointer dereference in lpfc_prep_els_iocb() It is possible to call lpfc_issue_els_plogi() passing a did for which no matching ndlp is found. A call is then made to lpfc_prep_els_iocb() with a null pointer to a lpfc_nodelist structure resulting in a null pointer dereference. Fix by returning an error status if no valid ndlp is found. Fix up comments regarding ndlp reference counting.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 4430f7fd09ecb037570119e0aacbf0c17b8f98b2 < a09677de458d500b00701f6036baa423d9995408 ; affected 4430f7fd09ecb037570119e0aacbf0c17b8f98b2 < 9bdcfbed2a9fe24d2c7eaa1bad7c705e18de8cc7 ; affected 4430f7fd09ecb037570119e0aacbf0c17b8f98b2 < 8dd1c125f7f838abad009b64bff5f0a11afe3cb6
Linux · Linuxaffected 5.11 ; unaffected 0 < 5.11 ; unaffected 5.11.21 ≤ 5.11.* ; unaffected 5.12.4 ≤ 5.12.* ; unaffected 5.13 ≤ *

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