7.8high
scsi: mpi3mr: Fix missing mrioc->evtack_cmds initialization
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix missing mrioc->evtack_cmds initialization Commit c1af985d27da ("scsi: mpi3mr: Add Event acknowledgment logic") introduced an array mrioc->evtack_cmds but initialization of the array elements was missed. They are just zero cleared. The function mpi3mr_complete_evt_ack() refers host_tag field of the elements. Due to the zero value of the host_tag field, the function calls clear_bit() for mrico->evtack_cmds_bitmap with wrong bit index. This results in memory access to invalid address and "BUG: KASAN: use-after-free". This BUG was observed at eHBA-9600 firmware update to version 8.3.1.0. To fix it, add the missing initialization of mrioc->evtack_cmds.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from c1af985d27da2d530c22604644e9025810f57d7c before 4e0dfdb48a824deac3dfbc67fb856ef2aee13529, from c1af985d27da2d530c22604644e9025810f57d7c before 67989091e11a974003ddf2ec39bc613df8eadd83, from c1af985d27da2d530c22604644e9025810f57d7c before e39ea831ebad4ab15c4748cb62a397a8abcca36e, 5.17 Not affected: before 5.17, from 6.1.16 up to 6.1.*, from 6.2.3 up to 6.2.*, from 6.3 up to * | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix missing mrioc->evtack_cmds initialization Commit c1af985d27da ("scsi: mpi3mr: Add Event acknowledgment logic") introduced an array mrioc->evtack_cmds but initialization of the array elements was missed. They are just zero cleared. The function mpi3mr_complete_evt_ack() refers host_tag field of the elements. Due to the zero value of the host_tag field, the function calls clear_bit() for mrico->evtack_cmds_bitmap with wrong bit index. This results in memory access to invalid address and "BUG: KASAN: use-after-free". This BUG was observed at eHBA-9600 firmware update to version 8.3.1.0. To fix it, add the missing initialization of mrioc->evtack_cmds.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: scsi: mpi3mr: Corrección de la inicialización faltante de mrioc -> evtack_cmds El commit c1af985d27da (’scsi: mpi3mr: Añadir lógica de reconocimiento de eventos’) introdujo un array mrioc -> evtack_cmds, pero se omitió la inicialización de los elementos del array. Simplemente se borran a cero. La función mpi3mr_complete_evt_ack() hace referencia al campo host_tag de los elementos. Debido al valor cero del campo host_tag, la función llama a clear_bit() para mrico -> evtack_cmds_bitmap con un índice de bit incorrecto. Esto resulta en un acceso a memoria a una dirección inválida y ’BUG: KASAN: uso después de liberación’. Este BUG se observó durante la actualización del firmware de eHBA-9600 a la versión 8.3.1.0. Para solucionarlo, se añade la inicialización faltante de mrioc -> evtack_cmds.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-54234 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2023-54234 changed 2026-10-28 | Public domain |