All reports
Medium

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-47045

Probability of exploitation in the next 30 days: 0.24%

FIRST EPSS · 2026-11-20

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.

A flaw was found in the scsi/lpfcIt subsystem of the Linux kernel, where it is possible to call lpfc_issue_els_plogi() passing a did argument 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.