CVE-2021-47045
Assigner: Linux
Published: 2024-02-28T08:13:49.708Z
State: PUBLISHED
descriptions: value: 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: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: 4430f7fd09ec
lessThan: a09677de458d
status: affected
versionType: git
version: 4430f7fd09ec
lessThan: 9bdcfbed2a9f
status: affected
versionType: git
version: 4430f7fd09ec
lessThan: 8dd1c125f7f8
status: affected
versionType: git
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions: version: 5.11
status: affected
version: 0
lessThan: 5.11
status: unaffected
versionType: custom
version: 5.11.21
lessThanOrEqual: 5.11.*
status: unaffected
versionType: custom
version: 5.12.4
lessThanOrEqual: 5.12.*
status: unaffected
versionType: custom
version: 5.13
lessThanOrEqual: *
status: unaffected
versionType: original_commit_for_fix
title: scsi: lpfc: Fix null pointer dereference in lpfc_prep_els_iocb()
x_generator: engine: bippy-c298863b1525