# CVE-2024-46842: scsi: lpfc: Handle mailbox timeouts in lpfc_get_sfp_info

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2024-09-27T12:39:36.370Z
- Modified: 2026-10-21T13:17:48.170Z
- Weaknesses: CWE-416
- 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: 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: before 6.10.10

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/c6d8cce685d6088d795b29a0f47e6fd04548fd64>
- <https://git.kernel.org/stable/c/bba47fe3b038cca3d3ebd799665ce69d6d273b58> (patch)
- <https://git.kernel.org/stable/c/ede596b1434b57c0b3fd5c02b326efe5c54f6e48> (patch)

## Sources

- CVE List: [CVE-2024-46842](https://www.cve.org/CVERecord?id=CVE-2024-46842), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2024-46842](https://nvd.nist.gov/vuln/detail/CVE-2024-46842), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2024-46842 · Whole record: https://cve.day/CVE-2024-46842.json · Rebuilt by cve.day 2026-11-25T22:58:45.839Z
