CVE-2021-47045

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

State
Published
Severity
Not scored
Published
Feb 28, 2024
Updated
May 11, 2026
Reserved
Feb 27, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 4430f7fd09ecb037570119e0aacbf0c17b8f98b2 to before a09677de458d500b00701f6036baa423d9995408Affected
  • 4430f7fd09ecb037570119e0aacbf0c17b8f98b2 to before 9bdcfbed2a9fe24d2c7eaa1bad7c705e18de8cc7Affected
  • 4430f7fd09ecb037570119e0aacbf0c17b8f98b2 to before 8dd1c125f7f838abad009b64bff5f0a11afe3cb6Affected
LinuxLinux
  • 5.11Affected
  • before 5.11Not affected
  • 5.11.21 through 5.11.*Not affected
  • 5.12.4 through 5.12.*Not affected
  • 5.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.