# CVE-2023-52811: scsi: ibmvfc: Remove BUG_ON in the case of an empty event pool

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-05-21T15:31:20.282Z
- Modified: 2026-06-17T06:43:38.360Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: ibmvfc: Remove BUG_ON in the case of an empty event pool

In practice the driver should never send more commands than are allocated
to a queue's event pool. In the unlikely event that this happens, the code
asserts a BUG_ON, and in the case that the kernel is not configured to
crash on panic returns a junk event pointer from the empty event list
causing things to spiral from there. This BUG_ON is a historical artifact
of the ibmvfc driver first being upstreamed, and it is well known now that
the use of BUG_ON is bad practice except in the most unrecoverable
scenario. There is nothing about this scenario that prevents the driver
from recovering and carrying on.

Remove the BUG_ON in question from ibmvfc_get_event() and return a NULL
pointer in the case of an empty event pool. Update all call sites to
ibmvfc_get_event() to check for a NULL pointer and perfrom the appropriate
failure or recovery action.

(As written by CVE List.)

## Affected

- Linux Linux: from 072b91f9c6510d0ec4a49d07dbc318760c7da7b3 before e1d1f79b1929dce470a5dc9281c574cd58e8c6c0; from 072b91f9c6510d0ec4a49d07dbc318760c7da7b3 before 88984ec4792766df5a9de7a2ff2b5f281f94c7d4; from 072b91f9c6510d0ec4a49d07dbc318760c7da7b3 before d2af4ef80601224b90630c1ddc7cd2c7c8ab4dd8; from 072b91f9c6510d0ec4a49d07dbc318760c7da7b3 before 8bbe784c2ff28d56ca0c548aaf3e584edc77052d; from 072b91f9c6510d0ec4a49d07dbc318760c7da7b3 before b39f2d10b86d0af353ea339e5815820026bca48f; 2.6.27 (not affected: before 2.6.27; from 5.15.140 up to 5.15.*; from 6.1.64 up to 6.1.*; from 6.5.13 up to 6.5.*; from 6.6.3 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: before 5.15.140; from 5.16 before 6.1.64; from 6.2 before 6.5.13; from 6.6 before 6.6.3

## References

- <https://git.kernel.org/stable/c/e1d1f79b1929dce470a5dc9281c574cd58e8c6c0> (patch)
- <https://git.kernel.org/stable/c/88984ec4792766df5a9de7a2ff2b5f281f94c7d4> (patch)
- <https://git.kernel.org/stable/c/d2af4ef80601224b90630c1ddc7cd2c7c8ab4dd8> (patch)
- <https://git.kernel.org/stable/c/8bbe784c2ff28d56ca0c548aaf3e584edc77052d> (patch)
- <https://git.kernel.org/stable/c/b39f2d10b86d0af353ea339e5815820026bca48f> (patch)

## Sources

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

---

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