scsi: qedf: Fix NULL dereference in error handling
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 61d8658b4a435eac729966cc94cdda077a8df5cd · < 271c9b2eb60149afbeab28cb39e52f73bde9900c| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
scsi: qedf: Fix NULL dereference in error handling
Smatch reported:
drivers/scsi/qedf/qedf_main.c:3056 qedf_alloc_global_queues() warn: missing unwind goto?
At this point in the function, nothing has been allocated so we can return directly. In particular the "qedf->global_queues" have not been allocated so calling qedf_free_global_queues() will lead to a NULL dereference when we check if (!gl[i]) and "gl" is NULL.
From the CVE record · Linux
The Linux kernel’s qedf SCSI driver can dereference a NULL pointer when queue allocation fails and its error path calls qedf_free_global_queues() before global queues have been allocated. The input does not specify an attacker path, access requirements, or user interaction.
Engineers running Linux kernels with the qedf SCSI driver should check their versions against the vendor advisory; affected versions are not specified.