scsi: lpfc: Fix null pointer dereference in lpfc_prep_els_iocb()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.11.215.12.45.13In 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.
From the CVE record · Linux
The Linux kernel's lpfc SCSI driver can dereference a null pointer when lpfc_issue_els_plogi() receives a DID with no matching node and calls lpfc_prep_els_iocb(). The input does not establish whether an attacker can trigger this condition, or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the lpfc SCSI driver should check their kernel versions against the vendor advisory; affected versions are not specified in the input.