CVE-2022-49535CWE-416

CVE-2022-49535

High · published February 26, 2025

CVSS v3.1
8.8
EPSS
0%
Percentile
27.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00353 · 27.8th percentile
Weakness
CWE-416 · Use After Free
Published
2025-02-26T12:01Z
Affected products (2)
ProductVersionsFixed in
linux/linux_kernel< 5.15.1815.15.181
linux/linux_kernel≥ 5.16, < 5.18.35.18.3
References (3)
EPSS history
Timeline
  • 26 FEB 02:13Z
    scsi: lpfc: Fix null pointer dereference after failing to issue FLOGI and PLOGI
    cvelistv5