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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2024-08-17T09:21:38.926Z
- Modified: 2026-08-05T11:36:38.470Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from af20bb73ac2591631d504f3f859f073bcdb7e11e before 9fd003f344d502f65252963169df3dd237054e49; from af20bb73ac2591631d504f3f859f073bcdb7e11e before 8bc7c617642db6d8d20ee671fb6c4513017e7a7e; 6.10 (not affected: before 6.10; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.10 before 6.10.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/9fd003f344d502f65252963169df3dd237054e49> (patch)
- <https://git.kernel.org/stable/c/8bc7c617642db6d8d20ee671fb6c4513017e7a7e> (patch)

## Sources

- CVE List: [CVE-2024-43816](https://www.cve.org/CVERecord?id=CVE-2024-43816), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-43816](https://nvd.nist.gov/vuln/detail/CVE-2024-43816), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-43816 · Whole record: https://cve.day/CVE-2024-43816.json · Rebuilt by cve.day 2026-11-25T22:58:44.486Z
