{"id":"CVE-2024-43821","summary":"scsi: lpfc: Fix a possible null pointer dereference","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: lpfc: Fix a possible null pointer dereference\n\nIn function lpfc_xcvr_data_show, the memory allocation with kmalloc might\nfail, thereby making rdp_context a null pointer. In the following context\nand functions that use this pointer, there are dereferencing operations,\nleading to null pointer dereference.\n\nTo fix this issue, a null pointer check should be added. If it is null,\nuse scnprintf to notify the user and return len.","modified":"2026-04-16T00:05:29.716882401Z","published":"2024-08-17T09:21:42.343Z","related":["SUSE-SU-2024:3190-1","SUSE-SU-2024:3194-1","SUSE-SU-2024:3195-1","SUSE-SU-2024:3209-1","SUSE-SU-2024:3383-1","SUSE-SU-2024:3483-1","SUSE-SU-2025:20044-1","SUSE-SU-2025:20047-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43821.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/45b2a23e00d448a9e6d1f371ca3a4d4b073fe78c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/57600a7dd2b52c904f7c8d2cac0fd8c23868e680"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5e0bf3e8aec2cbc51123f84b29aaacbd91fc56fa"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43821.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-43821"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"479b0917e4477f49df2e3be454aac3cfa5dec171"},{"fixed":"57600a7dd2b52c904f7c8d2cac0fd8c23868e680"},{"fixed":"45b2a23e00d448a9e6d1f371ca3a4d4b073fe78c"},{"fixed":"5e0bf3e8aec2cbc51123f84b29aaacbd91fc56fa"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-43821.json"}}],"schema_version":"1.7.5"}