Not scored
scsi: qedf: Fix NULL dereference in error handling
- Severity
- Not scored
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 61d8658b4a435eac729966cc94cdda077a8df5cd before 961c8370c5f7e80a267680476e1bcff34bffe71a, from 61d8658b4a435eac729966cc94cdda077a8df5cd before ac64019e4d4b08c23edb117e0b2590985e33de1d, from 61d8658b4a435eac729966cc94cdda077a8df5cd before b1de5105d29b145b727b797e2d5de071ab3a7ca1, from 61d8658b4a435eac729966cc94cdda077a8df5cd before c316bde418af4c2a9df51149ed01d1bd8ca5bebf, from 61d8658b4a435eac729966cc94cdda077a8df5cd before 08c001c1e9444a3046c79a99aa93ac48073b18cc, from 61d8658b4a435eac729966cc94cdda077a8df5cd before 271c9b2eb60149afbeab28cb39e52f73bde9900c, from 61d8658b4a435eac729966cc94cdda077a8df5cd before f025312b089474a54e4859f3453771314d9e3d4f, 4.11 Not affected: before 4.11, from 5.4.251 up to 5.4.*, from 5.10.188 up to 5.10.*, from 5.15.121 up to 5.15.*, from 6.1.39 up to 6.1.*, from 6.3.13 up to 6.3.* | CVE List |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: scsi: qedf: Solución a la desreferencia de NULL en el manejo de errores Smatch informó: drivers/scsi/qedf/qedf_main.c:3056 qedf_alloc_global_queues() advertencia: ¿falta un goto de desenrollado? En este punto de la función, nada ha sido asignado por lo que podemos retornar directamente. En particular, los 'qedf->global_queues' no han sido asignados, por lo que llamar a qedf_free_global_queues() conducirá a una desreferencia de NULL cuando comprobemos si (!gl[i]) y 'gl' es NULL.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-54289 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2023-54289 changed 2026-06-17 | Public domain |