scsi: lpfc: Fix a possible null pointer dereference
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.6.446.10.36.11In 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.
From the CVE record · Linux
The Linux kernel's lpfc SCSI driver can dereference a null pointer in lpfc_xcvr_data_show if a memory allocation fails. The input does not specify how an attacker could trigger this condition, whether authentication is needed, or whether user interaction is required.
Engineers running Linux kernels with the lpfc SCSI driver should check their installations; affected versions are not specified.