{"id":"CVE-2024-43816","state":"PUBLISHED","title":"scsi: lpfc: Revise lpfc_prep_embed_io routine with proper endian macro usages","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: lpfc: Revise lpfc_prep_embed_io routine with proper endian macro usages\n\nOn big endian architectures, it is possible to run into a memory out of\nbounds pointer dereference when FCP targets are zoned.\n\nIn lpfc_prep_embed_io, the memcpy(ptr, fcp_cmnd, sgl->sge_len) is\nreferencing a little endian formatted sgl->sge_len value.  So, the memcpy\ncan cause big endian systems to crash.\n\nRedefine the *sgl ptr as a struct sli4_sge_le to make it clear that we are\nreferring to a little endian formatted data structure.  And, update the\nroutine with proper le32_to_cpu macro usages.","publishedAt":"2024-08-17T09:21:38.926Z","updatedAt":"2026-08-05T11:36:38.470Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"af20bb73ac2591631d504f3f859f073bcdb7e11e","status":"affected","lessThan":"9fd003f344d502f65252963169df3dd237054e49","versionType":"git"},{"version":"af20bb73ac2591631d504f3f859f073bcdb7e11e","status":"affected","lessThan":"8bc7c617642db6d8d20ee671fb6c4513017e7a7e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/lpfc/lpfc_sli.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.10.3","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/lpfc/lpfc_sli.c"]}],"references":["https://git.kernel.org/stable/c/9fd003f344d502f65252963169df3dd237054e49","https://git.kernel.org/stable/c/8bc7c617642db6d8d20ee671fb6c4513017e7a7e"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/43xxx/CVE-2024-43816.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-43816","state":"PUBLISHED","datePublished":"2024-08-17T09:21:38.926Z","dateUpdated":"2026-08-05T11:36:38.470Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-08-17T09:11:59.270Z"},"containers":{"cna":{"title":"scsi: lpfc: Revise lpfc_prep_embed_io routine with proper endian macro usages","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: lpfc: Revise lpfc_prep_embed_io routine with proper endian macro usages\n\nOn big endian architectures, it is possible to run into a memory out of\nbounds pointer dereference when FCP targets are zoned.\n\nIn lpfc_prep_embed_io, the memcpy(ptr, fcp_cmnd, sgl->sge_len) is\nreferencing a little endian formatted sgl->sge_len value.  So, the memcpy\ncan cause big endian systems to crash.\n\nRedefine the *sgl ptr as a struct sli4_sge_le to make it clear that we are\nreferring to a little endian formatted data structure.  And, update the\nroutine with proper le32_to_cpu macro usages."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"af20bb73ac2591631d504f3f859f073bcdb7e11e","status":"affected","lessThan":"9fd003f344d502f65252963169df3dd237054e49","versionType":"git"},{"version":"af20bb73ac2591631d504f3f859f073bcdb7e11e","status":"affected","lessThan":"8bc7c617642db6d8d20ee671fb6c4513017e7a7e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/lpfc/lpfc_sli.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.10.3","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/scsi/lpfc/lpfc_sli.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9fd003f344d502f65252963169df3dd237054e49"},{"url":"https://git.kernel.org/stable/c/8bc7c617642db6d8d20ee671fb6c4513017e7a7e"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The oversized length is produced entirely by host-side driver code and is reached by issuing SCSI commands through `lpfc_queuecommand` from local file/block I/O or an SG_IO ioctl on an FC-attached LUN. No remote peer supplies the faulty value, so local access to the system is required.\nAC:L - On an affected big-endian host with an embed-capable SLI4 HBA the byte-swapped length is used on every embedded FCP I/O, so a single ordinary read or write deterministically triggers the copy — no race to win and no memory layout the attacker cannot influence.\nPR:L - Any unprivileged local user with access to a file or device node backed by an lpfc FC LUN reaches the path through normal I/O; 32-byte CDBs (the zoned case) are also emitted for plain reads/writes to a ZBC device without any capability check.\nUI:N - The command is submitted by the attacker's own I/O; no victim action or cooperation is needed.\nS:U - The corruption is confined to kernel memory within the same security authority — there is no VM, IOMMU, or sandbox boundary crossed.\nC:H - The memcpy reads roughly 512–768 MB past the end of the small `fcp_cmnd` DMA buffer, an unbounded out-of-bounds read of arbitrary kernel memory that is then written into the driver's WQE/heap region.\nI:H - This is an unbounded out-of-bounds write starting at `wqe->words[18]` inside `lpfc_cmd->cur_iocbq`, overwriting adjacent slab objects and function pointers with data whose leading bytes (LUN, FCP control, CDB) are attacker-chosen — classic heap-corruption territory for control-flow hijack.\nA:H - A multi-hundred-megabyte wild memcpy inevitably faults on unmapped memory or destroys critical kernel structures, producing a guaranteed oops/panic that can be re-triggered at will."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:36:38.470Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.10.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-43816","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:09:16.258182Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-12T17:33:04.878Z"}}]}}}