CVE-2024-46842
JSON

7.8high

scsi: lpfc: Handle mailbox timeouts in lpfc_get_sfp_info

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.29% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Handle mailbox timeouts in lpfc_get_sfp_info The MBX_TIMEOUT return code is not handled in lpfc_get_sfp_info and the routine unconditionally frees submitted mailbox commands regardless of return status. The issue is that for MBX_TIMEOUT cases, when firmware returns SFP information at a later time, that same mailbox memory region references previously freed memory in its cmpl routine. Fix by adding checks for the MBX_TIMEOUT return code. During mailbox resource cleanup, check the mbox flag to make sure that the wait did not timeout. If the MBOX_WAKE flag is not set, then do not free the resources because it will be freed when firmware completes the mailbox at a later time in its cmpl routine. Also, increase the timeout from 30 to 60 seconds to accommodate boot scripts requiring longer timeouts.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 479b0917e4477f49df2e3be454aac3cfa5dec171 before c6d8cce685d6088d795b29a0f47e6fd04548fd64, from 479b0917e4477f49df2e3be454aac3cfa5dec171 before bba47fe3b038cca3d3ebd799665ce69d6d273b58, from 479b0917e4477f49df2e3be454aac3cfa5dec171 before ede596b1434b57c0b3fd5c02b326efe5c54f6e48, 6.2
Not affected: before 6.2, from 6.6.160 up to 6.6.*, from 6.10.10 up to 6.10.*, from 6.11 up to *
CVE List
linux linux_kernelbefore 6.10.10NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Handle mailbox timeouts in lpfc_get_sfp_info The MBX_TIMEOUT return code is not handled in lpfc_get_sfp_info and the routine unconditionally frees submitted mailbox commands regardless of return status. The issue is that for MBX_TIMEOUT cases, when firmware returns SFP information at a later time, that same mailbox memory region references previously freed memory in its cmpl routine. Fix by adding checks for the MBX_TIMEOUT return code. During mailbox resource cleanup, check the mbox flag to make sure that the wait did not timeout. If the MBOX_WAKE flag is not set, then do not free the resources because it will be freed when firmware completes the mailbox at a later time in its cmpl routine. Also, increase the timeout from 30 to 60 seconds to accommodate boot scripts requiring longer timeouts.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: scsi: lpfc: Controlar los tiempos de espera del buzón en lpfc_get_sfp_info El código de retorno MBX_TIMEOUT no se maneja en lpfc_get_sfp_info y la rutina libera incondicionalmente los comandos de buzón enviados independientemente del estado de retorno. El problema es que para los casos de MBX_TIMEOUT, cuando el firmware devuelve información SFP en un momento posterior, esa misma región de memoria del buzón hace referencia a la memoria liberada previamente en su rutina cmpl. Se soluciona agregando comprobaciones para el código de retorno MBX_TIMEOUT. Durante la limpieza de recursos del buzón, verifique el indicador mbox para asegurarse de que la espera no haya expirado. Si el indicador MBOX_WAKE no está configurado, no libere los recursos porque se liberarán cuando el firmware complete el buzón en un momento posterior en su rutina cmpl. Además, aumente el tiempo de espera de 30 a 60 segundos para dar cabida a los scripts de arranque que requieren tiempos de espera más largos.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-46842 changed 2026-10-21CVE Terms of Use
NVDCVE-2024-46842 changed 2026-10-21Public domain