# CVE-2023-54289: scsi: qedf: Fix NULL dereference in error handling

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2025-12-30T12:23:28.430Z
- Modified: 2026-06-17T06:47:09.947Z
- 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.

(As written by CVE List.)

## Affected

- 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.*; from 6.4.4 up to 6.4.*; from 6.5 up to *)

## References

- <https://git.kernel.org/stable/c/961c8370c5f7e80a267680476e1bcff34bffe71a>
- <https://git.kernel.org/stable/c/ac64019e4d4b08c23edb117e0b2590985e33de1d>
- <https://git.kernel.org/stable/c/b1de5105d29b145b727b797e2d5de071ab3a7ca1>
- <https://git.kernel.org/stable/c/c316bde418af4c2a9df51149ed01d1bd8ca5bebf>
- <https://git.kernel.org/stable/c/08c001c1e9444a3046c79a99aa93ac48073b18cc>
- <https://git.kernel.org/stable/c/271c9b2eb60149afbeab28cb39e52f73bde9900c>
- <https://git.kernel.org/stable/c/f025312b089474a54e4859f3453771314d9e3d4f>

## Sources

- CVE List: [CVE-2023-54289](https://www.cve.org/CVERecord?id=CVE-2023-54289), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-54289](https://nvd.nist.gov/vuln/detail/CVE-2023-54289), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-54289 · Whole record: https://cve.day/CVE-2023-54289.json · Rebuilt by cve.day 2026-11-25T22:58:35.261Z
