In the Linux kernel, the following vulnerability has been resolved:
scsi: lpfc: Fix a possible null pointer dereference
In function lpfcxcvrdatashow, the memory allocation with kmalloc might fail, thereby making rdpcontext 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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43821.json"
}[
{
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"36970859384765345623867570123839047879",
"136473902747574616721569182295696950454",
"242773057811663407854193676955310266009",
"224405354381788500986282837980454677560"
]
},
"deprecated": false,
"signature_type": "Line",
"id": "CVE-2024-43821-76bbbd15",
"target": {
"file": "drivers/scsi/lpfc/lpfc_attr.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@57600a7dd2b52c904f7c8d2cac0fd8c23868e680"
},
{
"digest": {
"length": 3804.0,
"function_hash": "73710803711532879181810466088457949342"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"id": "CVE-2024-43821-90c1f71a",
"target": {
"function": "lpfc_xcvr_data_show",
"file": "drivers/scsi/lpfc/lpfc_attr.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@57600a7dd2b52c904f7c8d2cac0fd8c23868e680"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-43821.json"