VDB

CVE-2022-49535

CVE-2022-49535 PUBLISHED CVSS 8.8 HIGH

scsi: lpfc: Fix null pointer dereference after failing to issue FLOGI and PLOGI

Reported by linux · Published February 26, 2025

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.

Risk scores

CVSS 3.1
8.8
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux52edb2caf675684acf2140a125de4774c691fecd, 52edb2caf675684acf2140a125de4774c691fecd, 52edb2caf675684acf2140a125de4774c691fecd
LinuxLinux5.11, 0, 5.15.181
linuxlinux_kernel5.11, 5.11, 5.11
LinuxLinux52edb2caf675684acf2140a125de4774c691fecd, 52edb2caf675684acf2140a125de4774c691fecd, 52edb2caf675684acf2140a125de4774c691fecd

Timeline

  • Feb 26, 2025 CVE Published
  • Feb 27, 2025 EPSS Score (30 in total, the first dated here)
  • May 23, 2026 Coalition ESS Score
  • Jun 2, 2026 Security Advisory (54 in total, the first dated here)
  • Aug 4, 2026 CVE Updated
  • Nov 21, 2026 Distribution Patch (53 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-49535
vulnetix vdb fixes CVE-2022-49535

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-49535/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›