# CVE-2024-43821: scsi: lpfc: Fix a possible null pointer dereference

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-08-17T09:21:42.343Z
- Modified: 2026-06-17T07:51:46.730Z
- 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: Fix a possible null pointer dereference

In function lpfc_xcvr_data_show, the memory allocation with kmalloc might
fail, thereby making rdp_context a null pointer. In the following context
and functions that use this pointer, there are dereferencing operations,
leading to null pointer dereference.

To fix this issue, a null pointer check should be added. If it is null,
use scnprintf to notify the user and return len.

(As written by CVE List.)

## Affected

- Linux Linux: from 479b0917e4477f49df2e3be454aac3cfa5dec171 before 57600a7dd2b52c904f7c8d2cac0fd8c23868e680; from 479b0917e4477f49df2e3be454aac3cfa5dec171 before 45b2a23e00d448a9e6d1f371ca3a4d4b073fe78c; from 479b0917e4477f49df2e3be454aac3cfa5dec171 before 5e0bf3e8aec2cbc51123f84b29aaacbd91fc56fa; 6.2 (not affected: before 6.2; from 6.6.44 up to 6.6.*; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.2 before 6.6.44; from 6.7 before 6.10.3

## References

- <https://git.kernel.org/stable/c/57600a7dd2b52c904f7c8d2cac0fd8c23868e680> (patch)
- <https://git.kernel.org/stable/c/45b2a23e00d448a9e6d1f371ca3a4d4b073fe78c> (patch)
- <https://git.kernel.org/stable/c/5e0bf3e8aec2cbc51123f84b29aaacbd91fc56fa> (patch)

## Sources

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

---

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