scsi: lpfc: Check for hdwq null ptr when cleaning up lpfc_vport structure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5e5b511d8bfaf765cb92a695cda336c936cb86dc · < 571617f171f723b05f02d154a2e549a17eab4935| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: lpfc: Check for hdwq null ptr when cleaning up lpfc_vport structure
If a call to lpfc_sli4_read_rev() from lpfc_sli4_hba_setup() fails, the resultant cleanup routine lpfc_sli4_vport_delete_fcp_xri_aborted() may occur before sli4_hba.hdwqs are allocated. This may result in a null pointer dereference when attempting to take the abts_io_buf_list_lock for the first hardware queue. Fix by adding a null ptr check on phba->sli4_hba.hdwq and early return because this situation means there must have been an error during port initialization.
From the CVE record · Linux
The Linux kernel's lpfc driver can dereference a null pointer while cleaning up a virtual port if lpfc_sli4_read_rev() fails before hardware queues are allocated. The input does not establish whether an attacker can trigger this condition, or specify network access, authentication, or user-interaction requirements.
Engineers running Linux kernels with the lpfc driver should check their kernel versions; affected versions are not specified.