What’s Vulnerable › Vulnerabilities
CVE-2021-47045: scsi: lpfc: Fix null pointer dereference in lpfc_prep_els_iocb()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-02-28 · updated 2026-06-17
- Weakness: CWE-476
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 products
- Linux kernel: from 5.11 before 5.11.21; from 5.12 before 5.12.4 — fixed in 5.11.21, 5.12.4
How to fix
Upgrade to a fixed version: Linux kernel 5.11.21, 5.12.4. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/8dd1c125f7f838abad009b64bff5f0a11afe3cb6
- https://git.kernel.org/stable/c/9bdcfbed2a9fe24d2c7eaa1bad7c705e18de8cc7
- https://git.kernel.org/stable/c/a09677de458d500b00701f6036baa423d9995408
- https://git.kernel.org/stable/c/8dd1c125f7f838abad009b64bff5f0a11afe3cb6
- https://git.kernel.org/stable/c/9bdcfbed2a9fe24d2c7eaa1bad7c705e18de8cc7
- https://git.kernel.org/stable/c/a09677de458d500b00701f6036baa423d9995408
Get alerted when CVE-2021-47045 or the next vulnerability affects your stack