# CVE-2025-38695: scsi: lpfc: Check for hdwq null ptr when cleaning up lpfc\_vport structure

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 12, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2025-09-04T15:32:48.168Z
- **Modified:** 2026-11-05T22:17:25.653Z

## Who should check

- Anyone running Linux \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 6711ce7e9de4eb1a541ef30638df1294ea4267f8; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 74bdf54a847dab209d2a8f65852f59b7fa156175; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 5e25ee1ecec91c61a8acf938ad338399cad464de; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< add68606a01dcccf18837a53e85b85caf0693b4b; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 7925dd68807cc8fd755b04ca99e7e6f1c04392e8; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 571617f171f723b05f02d154a2e549a17eab4935; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< d3f55f46bb37a8ec73bfe3cfe36e3ecfa2945dfa; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 46a0602c24d7d425dd8e00c749cd64a934aac7ec; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 6698796282e828733cde3329c887b4ae9e5545e9
- Anyone running Linux 5.1

## 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.

## Affected and fixed versions

- Linux: \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 6711ce7e9de4eb1a541ef30638df1294ea4267f8; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 74bdf54a847dab209d2a8f65852f59b7fa156175; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 5e25ee1ecec91c61a8acf938ad338399cad464de; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< add68606a01dcccf18837a53e85b85caf0693b4b; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 7925dd68807cc8fd755b04ca99e7e6f1c04392e8; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 571617f171f723b05f02d154a2e549a17eab4935; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< d3f55f46bb37a8ec73bfe3cfe36e3ecfa2945dfa; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 46a0602c24d7d425dd8e00c749cd64a934aac7ec; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 6698796282e828733cde3329c887b4ae9e5545e9 (cvelist)
- Linux: 5.1 (cvelist)

## Mitigation

- Upgrade Linux to 6698796282e828733cde3329c887b4ae9e5545e9 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38695. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38695.md
Affected: Linux >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 6711ce7e9de4eb1a541ef30638df1294ea4267f8; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 74bdf54a847dab209d2a8f65852f59b7fa156175; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 5e25ee1ecec91c61a8acf938ad338399cad464de; >= 5e5b511d8bfaf765cb92a69…
Fixed in: Linux 6711ce7e9de4eb1a541ef30638df1294ea4267f8, Linux 74bdf54a847dab209d2a8f65852f59b7fa156175, Linux 5e25ee1ecec91c61a8acf938ad338399cad464de, Linux 7925dd68807cc8fd755b04ca99e7e6f1c04392e8, Linux 571617f171f723b05f02d154a2e549a17eab4935, Linux 46a0602c24d7d425dd8e00c749cd64a934aac7ec, Linux 66987…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38695 being exploited?

There is no confirmed exploitation: CVE-2025-38695 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-38695?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38695?

Linux \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 6711ce7e9de4eb1a541ef30638df1294ea4267f8; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 74bdf54a847dab209d2a8f65852f59b7fa156175; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 5e25ee1ecec91c61a8acf938ad338399cad464de; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< add68606a01dcccf18837a53e85b85caf0693b4b; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 7925dd68807cc8fd755b04ca99e7e6f1c04392e8; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 571617f171f723b05f02d154a2e549a17eab4935; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< d3f55f46bb37a8ec73bfe3cfe36e3ecfa2945dfa; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 46a0602c24d7d425dd8e00c749cd64a934aac7ec; \>= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, \< 6698796282e828733cde3329c887b4ae9e5545e9; Linux 5.1.

### Is there a fix for CVE-2025-38695?

Yes. Fixed in Linux 6711ce7e9de4eb1a541ef30638df1294ea4267f8, Linux 74bdf54a847dab209d2a8f65852f59b7fa156175, Linux 5e25ee1ecec91c61a8acf938ad338399cad464de, Linux 7925dd68807cc8fd755b04ca99e7e6f1c04392e8, Linux 571617f171f723b05f02d154a2e549a17eab4935, Linux 46a0602c24d7d425dd8e00c749cd64a934aac7ec, Linux 6698796282e828733cde3329c887b4ae9e5545e9. Upgrade Linux to 6698796282e828733cde3329c887b4ae9e5545e9 or later.

### How do I check if I'm affected by CVE-2025-38695?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6711ce7e9de4eb1a541ef30638df1294ea4267f8>
- patch: <https://git.kernel.org/stable/c/74bdf54a847dab209d2a8f65852f59b7fa156175>
- patch: <https://git.kernel.org/stable/c/5e25ee1ecec91c61a8acf938ad338399cad464de>
- patch: <https://git.kernel.org/stable/c/add68606a01dcccf18837a53e85b85caf0693b4b>
- patch: <https://git.kernel.org/stable/c/7925dd68807cc8fd755b04ca99e7e6f1c04392e8>
- patch: <https://git.kernel.org/stable/c/571617f171f723b05f02d154a2e549a17eab4935>
- patch: <https://git.kernel.org/stable/c/d3f55f46bb37a8ec73bfe3cfe36e3ecfa2945dfa>
- patch: <https://git.kernel.org/stable/c/46a0602c24d7d425dd8e00c749cd64a934aac7ec>
- patch: <https://git.kernel.org/stable/c/6698796282e828733cde3329c887b4ae9e5545e9>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38695>

HTML: <https://flawdb.com/CVE-2025-38695> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38695>
