CVE-2022-49535 Details
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: lpfc: Fix null pointer dereference after failing to issue FLOGI and PLOGI If lpfc_issue_els_flogi() fails and returns non-zero status, the node reference count is decremented to trigger the release of the nodelist structure. However, if there is a prior registration or dev-loss-evt work pending, the node may be released prematurely. When dev-loss-evt completes, the released node is referenced causing a use-after-free null pointer dereference. Similarly, when processing non-zero ELS PLOGI completion status in lpfc_cmpl_els_plogi(), the ndlp flags are checked for a transport registration before triggering node removal. If dev-loss-evt work is pending, the node may be released prematurely and a subsequent call to lpfc_dev_loss_tmo_handler() results in a use after free ndlp dereference. Add test for pending dev-loss before decrementing the node reference count for FLOGI, PLOGI, PRLI, and ADISC handling.
A vulnerability in the Linux kernel's SCSI lpfc driver can cause a null pointer dereference, resulting in a use-after-free error. This issue arises when the function lpfc_issue_els_flogi() fails and returns a non-zero status. The nodereference count is then decremented, prematurely releasing the nodelist structure. If there is pending work from a prior registration or a dev-loss-evt event, the released node is referenced again, causing the null pointer dereference. A similar issue occurs when processing non-zero ELS PLOGI completion statuses, where the node may be released too early, leading to the same use-after-free dereference when the dev-loss-evt work is completed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 27, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/10663ebec0ad5c78493a0dd34c9ee4d73d7ca0df | kernel.org | Patch |
| https://git.kernel.org/stable/c/577a942df3de2666f6947bdd3a5c9e8d30073424 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c7dc74ab7975c9b96284abfe4cca756d75fa4604 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | < 5.15.181 >= 5.16, < 5.18.3 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 18, 2025 | Modified Analysis | [email protected] |
| May 2, 2025 | CVE Modified | kernel.org |
| Mar 24, 2025 | Initial Analysis | [email protected] |
| Feb 27, 2025 | CVE Modified | CISA-ADP |
| Feb 26, 2025 | New CVE Received | kernel.org |