CVE-2025-38695

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

No CVSS score yet EPSS 0.19%

Published 4 Sep 2025 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2025-38695

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38695 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.64% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 5e5b511d8bfaf765cb92a695cda336c936cb86dc, before 6711ce7e9de4eb1a541ef30638df1294ea4267f8
affected from 5e5b511d8bfaf765cb92a695cda336c936cb86dc, before 74bdf54a847dab209d2a8f65852f59b7fa156175
affected from 5e5b511d8bfaf765cb92a695cda336c936cb86dc, before 5e25ee1ecec91c61a8acf938ad338399cad464de
affected from 5e5b511d8bfaf765cb92a695cda336c936cb86dc, before add68606a01dcccf18837a53e85b85caf0693b4b
affected from 5e5b511d8bfaf765cb92a695cda336c936cb86dc, before 7925dd68807cc8fd755b04ca99e7e6f1c04392e8
affected from 5e5b511d8bfaf765cb92a695cda336c936cb86dc, before 571617f171f723b05f02d154a2e549a17eab4935
affected from 5e5b511d8bfaf765cb92a695cda336c936cb86dc, before d3f55f46bb37a8ec73bfe3cfe36e3ecfa2945dfa
affected from 5e5b511d8bfaf765cb92a695cda336c936cb86dc, before 46a0602c24d7d425dd8e00c749cd64a934aac7ec
affected from 5e5b511d8bfaf765cb92a695cda336c936cb86dc, before 6698796282e828733cde3329c887b4ae9e5545e9
Other versions: unaffected
Linux
affected 5.1
unaffected before 5.1
unaffected from 5.4.297 up to and including 5.4.*
unaffected from 5.10.241 up to and including 5.10.*
unaffected from 5.15.190 up to and including 5.15.*
unaffected from 6.1.149 up to and including 6.1.*
unaffected from 6.6.103 up to and including 6.6.*
unaffected from 6.12.43 up to and including 6.12.*
unaffected from 6.15.11 up to and including 6.15.*
unaffected from 6.16.2 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38695 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38695

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38695
trivy image --scanners vuln IMAGE | grep CVE-2025-38695

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38695 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.