CVE-2021-47045
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.24% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 4430f7fd09ecb037570119e0aacbf0c17b8f98b2 before a09677de458d500b00701f6036baa423d9995408, from 4430f7fd09ecb037570119e0aacbf0c17b8f98b2 before 9bdcfbed2a9fe24d2c7eaa1bad7c705e18de8cc7, from 4430f7fd09ecb037570119e0aacbf0c17b8f98b2 before 8dd1c125f7f838abad009b64bff5f0a11afe3cb6, 5.11
Not affected: before 5.11, from 5.11.21 up to 5.11.*, from 5.12.4 up to 5.12.*, from 5.13 up to *
CVE List
linux linux_kernelfrom 5.11 before 5.11.21, from 5.12 before 5.12.4NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: lpfc: corrige la desreferencia del puntero nulo en lpfc_prep_els_iocb() Es posible llamar a lpfc_issue_els_plogi() pasando un did para el cual no se encuentra ningún ndlp coincidente. Luego se realiza una llamada a lpfc_prep_els_iocb() con un puntero nulo a una estructura lpfc_nodelist, lo que da como resultado una desreferencia del puntero nulo. Corrija devolviendo un estado de error si no se encuentra ningún ndlp válido. Corrija los comentarios sobre el recuento de referencias de ndlp.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47045 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47045 changed 2026-06-17Public domain