CVE-2024-46842

Severity CVSS v4.0:
Pending analysis
Type:
CWE-416 Use After Free
Publication date:
27/09/2024
Last modified:
08/10/2024

Description

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

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.10.10 (excluding)