CVE-2025-38695

scsi: lpfc: Check for hdwq null ptr when cleaning up lpfc_vport structure

State
Published
Severity
Not scored
Published
Sep 4, 2025
Updated
May 12, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

scsi: lpfc: Check for hdwq null ptr when cleaning up lpfc_vport structure

If a call to lpfc_sli4_read_rev() from lpfc_sli4_hba_setup() fails, the resultant cleanup routine lpfc_sli4_vport_delete_fcp_xri_aborted() may occur before sli4_hba.hdwqs are allocated. This may result in a null pointer dereference when attempting to take the abts_io_buf_list_lock for the first hardware queue. Fix by adding a null ptr check on phba->sli4_hba.hdwq and early return because this situation means there must have been an error during port initialization.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 5e5b511d8bfaf765cb92a695cda336c936cb86dc to before 6711ce7e9de4eb1a541ef30638df1294ea4267f8Affected
  • 5e5b511d8bfaf765cb92a695cda336c936cb86dc to before 74bdf54a847dab209d2a8f65852f59b7fa156175Affected
  • 5e5b511d8bfaf765cb92a695cda336c936cb86dc to before 5e25ee1ecec91c61a8acf938ad338399cad464deAffected
  • 5e5b511d8bfaf765cb92a695cda336c936cb86dc to before add68606a01dcccf18837a53e85b85caf0693b4bAffected
  • 5e5b511d8bfaf765cb92a695cda336c936cb86dc to before 7925dd68807cc8fd755b04ca99e7e6f1c04392e8Affected
  • 5e5b511d8bfaf765cb92a695cda336c936cb86dc to before 571617f171f723b05f02d154a2e549a17eab4935Affected
  • 5e5b511d8bfaf765cb92a695cda336c936cb86dc to before d3f55f46bb37a8ec73bfe3cfe36e3ecfa2945dfaAffected
  • 5e5b511d8bfaf765cb92a695cda336c936cb86dc to before 46a0602c24d7d425dd8e00c749cd64a934aac7ecAffected
  • 5e5b511d8bfaf765cb92a695cda336c936cb86dc to before 6698796282e828733cde3329c887b4ae9e5545e9Affected
LinuxLinux
  • 5.1Affected
  • before 5.1Not affected
  • 5.4.297 through 5.4.*Not affected
  • 5.10.241 through 5.10.*Not affected
  • 5.15.190 through 5.15.*Not affected
  • 6.1.149 through 6.1.*Not affected
  • 6.6.103 through 6.6.*Not affected
  • 6.12.43 through 6.12.*Not affected
  • 6.15.11 through 6.15.*Not affected
  • 6.16.2 through 6.16.*Not affected
  • 6.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.