{"id":"CVE-2023-52811","aliases":["CVE-2023-52811"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: ibmvfc: Remove BUG_ON in the case of an empty event pool","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ibmvfc: Remove BUG_ON in the case of an empty event pool\n\nIn practice the driver should never send more commands than are allocated\nto a queue's event pool. In the unlikely event that this happens, the code\nasserts a BUG_ON, and in the case that the kernel is not configured to\ncrash on panic returns a junk event pointer from the empty event list\ncausing things to spiral from there. This BUG_ON is a historical artifact\nof the ibmvfc driver first being upstreamed, and it is well known now that\nthe use of BUG_ON is bad practice except in the most unrecoverable\nscenario. There is nothing about this scenario that prevents the driver\nfrom recovering and carrying on.\n\nRemove the BUG_ON in question from ibmvfc_get_event() and return a NULL\npointer in the case of an empty event pool. Update all call sites to\nibmvfc_get_event() to check for a NULL pointer and perfrom the appropriate\nfailure or recovery action.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: ibmvfc: Remove BUG_ON in the case of an empty event pool\n\nIn practice the driver should never send more commands than are allocated\nto a queue's event pool. In the unlikely event that this happens, the code\nasserts a BUG_ON, and in the case that the kernel is not configured to\ncrash on panic returns a junk event pointer from the empty event list\ncausing things to spiral from there. This BUG_ON is a historical artifact\nof the ibmvfc driver first being upstreamed, and it is well known now that\nthe use of BUG_ON is bad practice except in the most unrecoverable\nscenario. There is nothing about this scenario that prevents the driver\nfrom recovering and carrying on.\n\nRemove the BUG_ON in question from ibmvfc_get_event() and return a NULL\npointer in the case of an empty event pool. Update all call sites to\nibmvfc_get_event() to check for a NULL pointer and perfrom the appropriate\nfailure or recovery action.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: ibmvfc: Eliminar BUG_ON en el caso de un grupo de eventos vacío. En la práctica, el controlador nunca debe enviar más comandos de los asignados al grupo de eventos de una cola. En el improbable caso de que esto suceda, el código afirma un BUG_ON, y en el caso de que el kernel no esté configurado para fallar en caso de pánico, devuelve un puntero de evento basura de la lista de eventos vacía, lo que hace que las cosas vayan en espiral a partir de ahí. Este BUG_ON es un artefacto histórico del controlador ibmvfc que se actualizó por primera vez, y ahora es bien sabido que el uso de BUG_ON es una mala práctica, excepto en el escenario más irrecuperable. No hay nada en este escenario que impida al conductor recuperarse y continuar. Elimine el BUG_ON en cuestión de ibmvfc_get_event() y devuelva un puntero NULL en el caso de un grupo de eventos vacío. Actualice todos los sitios de llamadas a ibmvfc_get_event() para comprobar si hay un puntero NULL y realizar la acción de recuperación o error adecuada.","source":"nvd"}],"published":"2024-05-21T15:31:20.282Z","modified":"2026-06-17T06:43:38.360Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"072b91f9c6510d0ec4a49d07dbc318760c7da7b3","fixed":"e1d1f79b1929dce470a5dc9281c574cd58e8c6c0","status":"affected"},{"type":"git","introduced":"072b91f9c6510d0ec4a49d07dbc318760c7da7b3","fixed":"88984ec4792766df5a9de7a2ff2b5f281f94c7d4","status":"affected"},{"type":"git","introduced":"072b91f9c6510d0ec4a49d07dbc318760c7da7b3","fixed":"d2af4ef80601224b90630c1ddc7cd2c7c8ab4dd8","status":"affected"},{"type":"git","introduced":"072b91f9c6510d0ec4a49d07dbc318760c7da7b3","fixed":"8bbe784c2ff28d56ca0c548aaf3e584edc77052d","status":"affected"},{"type":"git","introduced":"072b91f9c6510d0ec4a49d07dbc318760c7da7b3","fixed":"b39f2d10b86d0af353ea339e5815820026bca48f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.27","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.27","status":"unaffected"},{"type":"semver","introduced":"5.15.140","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.64","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.5.13","lastAffected":"6.5.*","status":"unaffected"},{"type":"semver","introduced":"6.6.3","lastAffected":"6.6.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.7","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.15.140"},{"status":"affected","introduced":"5.16","fixed":"6.1.64"},{"status":"affected","introduced":"6.2","fixed":"6.5.13"},{"status":"affected","introduced":"6.6","fixed":"6.6.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/e1d1f79b1929dce470a5dc9281c574cd58e8c6c0","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/88984ec4792766df5a9de7a2ff2b5f281f94c7d4","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d2af4ef80601224b90630c1ddc7cd2c7c8ab4dd8","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8bbe784c2ff28d56ca0c548aaf3e584edc77052d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b39f2d10b86d0af353ea339e5815820026bca48f","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-29T17:41:58.046Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-52811","url":"https://www.cve.org/CVERecord?id=CVE-2023-52811","licence":"CVE Terms of Use","modified":"2026-05-11T19:33:34.122Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-52811","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-52811","licence":"Public domain","modified":"2026-06-17T06:43:38.360Z"}],"updatedAt":"2026-11-25T22:58:34.032Z","epss":{"score":0.0025,"percentile":0.175,"date":"2026-12-01T12:00:22.000Z"}}