{"id":"CVE-2024-46842","revision":"b5a2ddae48aa4aca800ef306e5121167","records":[{"revision":"b5a2ddae48aa4aca800ef306e5121167","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-46842","aliases":[],"title":"scsi: lpfc: Handle mailbox timeouts in lpfc_get_sfp_info","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: lpfc: Handle mailbox timeouts in lpfc_get_sfp_info\n\nThe MBX_TIMEOUT return code is not handled in lpfc_get_sfp_info and the\nroutine unconditionally frees submitted mailbox commands regardless of\nreturn status.  The issue is that for MBX_TIMEOUT cases, when firmware\nreturns SFP information at a later time, that same mailbox memory region\nreferences previously freed memory in its cmpl routine.\n\nFix by adding checks for the MBX_TIMEOUT return code.  During mailbox\nresource cleanup, check the mbox flag to make sure that the wait did not\ntimeout.  If the MBOX_WAKE flag is not set, then do not free the resources\nbecause it will be freed when firmware completes the mailbox at a later\ntime in its cmpl routine.\n\nAlso, increase the timeout from 30 to 60 seconds to accommodate boot\nscripts requiring longer timeouts.","state":0,"publishedAt":"2024-09-27T12:39:36.37+00:00","modifiedAt":"2026-10-21T12:35:15.471+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/scsi/lpfc/lpfc_els.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"479b0917e4477f49df2e3be454aac3cfa5dec171\",\n                            \"lessThan\": \"c6d8cce685d6088d795b29a0f47e6fd04548fd64\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"479b0917e4477f49df2e3be454aac3cfa5dec171\",\n                            \"lessThan\": \"bba47fe3b038cca3d3ebd799665ce69d6d273b58\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"479b0917e4477f49df2e3be454aac3cfa5dec171\",\n                            \"lessThan\": \"ede596b1434b57c0b3fd5c02b326efe5c54f6e48\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/scsi/lpfc/lpfc_els.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.2\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.2\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.160\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.10.10\",\n                            \"lessThanOrEqual\": \"6.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.11\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/c6d8cce685d6088d795b29a0f47e6fd04548fd64","https://git.kernel.org/stable/c/bba47fe3b038cca3d3ebd799665ce69d6d273b58","https://git.kernel.org/stable/c/ede596b1434b57c0b3fd5c02b326efe5c54f6e48"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-46842","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-46842","identifiers":["CVE-2024-46842"]},"retained":false,"historicalAffected":[]}],"coverage":[]}