CVE-2024-49891 scsi: lpfc: Validate hdwq pointers before dereferencing in reset/errata paths

Medium 5.5 Published Updated

A null pointer dereference in the Linux kernel's lpfc driver can cause a system crash during HBA reset or errata events.

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-2024-49891?

CVE-2024-49891 is a medium-severity vulnerability in Linux kernel, published on 21 Oct 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: Validate hdwq pointers before dereferencing in reset/errata paths

When the HBA is undergoing a reset or is handling an errata event, NULL ptr dereference crashes may occur in routines such as lpfc_sli_flush_io_rings(), lpfc_dev_loss_tmo_callbk(), or lpfc_abort_handler().

Add NULL ptr checks before dereferencing hdwq pointers that may have been freed due to operations colliding with a reset or errata event handler.

Weakness: CWE-476

Which versions are affected by CVE-2024-49891?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-49891?

Apply the vendor's patch.

Is CVE-2024-49891 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-51391, AZL-51518, BELL-CVE-2024-49891, DEBIAN-CVE-2024-49891, GHSA-q8m3-vwhc-qqmc, ROOT-OS-DEBIAN-11-CVE-2024-49891 and 2 more.

Is CVE-2024-49891 in your software?

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

Check your SBOMs for free