CVE-2021-47045 scsi: lpfc: Fix null pointer dereference in lpfc_prep_els_iocb()

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel's lpfc driver allows attackers to cause a denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-47045?

CVE-2021-47045 is a medium-severity vulnerability in Linux kernel, published on 28 Feb 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-476

Which versions are affected by CVE-2021-47045?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47045?

Apply the vendor's patch.

Is CVE-2021-47045 being exploited?

There is no known exploitation of CVE-2021-47045 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as GHSA-7h2p-gcjg-4fw8, UBUNTU-CVE-2021-47045.

Is CVE-2021-47045 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free