CVE-2024-43816 scsi: lpfc: Revise lpfc_prep_embed_io routine with proper endian macro usages

High 7.8 Published Updated

A memory out-of-bounds pointer dereference in the Linux kernel lpfc driver can cause a crash on big-endian systems when FCP targets are zoned.

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-43816?

CVE-2024-43816 is a high-severity vulnerability in Linux kernel, published on 17 Aug 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: Revise lpfc_prep_embed_io routine with proper endian macro usages

On big endian architectures, it is possible to run into a memory out of bounds pointer dereference when FCP targets are zoned.

In lpfc_prep_embed_io, the memcpy(ptr, fcp_cmnd, sgl->sge_len) is referencing a little endian formatted sgl->sge_len value. So, the memcpy can cause big endian systems to crash.

Redefine the *sgl ptr as a struct sli4_sge_le to make it clear that we are referring to a little endian formatted data structure. And, update the routine with proper le32_to_cpu macro usages.

Weakness: CWE-476

Which versions are affected by CVE-2024-43816?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-43816?

Apply the vendor's patch.

Is CVE-2024-43816 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-43816, GHSA-gg62-p4px-cw9r, UBUNTU-CVE-2024-43816.

Is CVE-2024-43816 in your software?

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

Check your SBOMs for free