CVE-2025-38695
scsi: lpfc: Check for hdwq null ptr when cleaning up lpfc_vport structure
Mitigation
- Upgrade Linux to 6698796282e828733cde3329c887b4ae9e5545e9 or later.
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
Vulnerability facts
- Affected
- Linux >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 6711ce7e9de4eb1a541ef30638df1294ea4267f8; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 74bdf54a847dab209d2a8f65852f59b7fa156175; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 5e25ee1ecec91c61a8acf938ad338399cad464de; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < add68606a01dcccf18837a53e85b85caf0693b4b; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 7925dd68807cc8fd755b04ca99e7e6f1c04392e8; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 571617f171f723b05f02d154a2e549a17eab4935; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < d3f55f46bb37a8ec73bfe3cfe36e3ecfa2945dfa; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 46a0602c24d7d425dd8e00c749cd64a934aac7ec; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 6698796282e828733cde3329c887b4ae9e5545e9; Linux 5.1
- Fixed in
- Linux 6711ce7e9de4eb1a541ef30638df1294ea4267f8, Linux 74bdf54a847dab209d2a8f65852f59b7fa156175, Linux 5e25ee1ecec91c61a8acf938ad338399cad464de, Linux 7925dd68807cc8fd755b04ca99e7e6f1c04392e8, Linux 571617f171f723b05f02d154a2e549a17eab4935, Linux 46a0602c24d7d425dd8e00c749cd64a934aac7ec, Linux 6698796282e828733cde3329c887b4ae9e5545e9
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.27% chance of exploitation in 30 days (percentile 12, 2026-11-26)
- CWE
- CWE-476
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 6711ce7e9de4eb1a541ef30638df1294ea4267f8; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 74bdf54a847dab209d2a8f65852f59b7fa156175; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 5e25ee1ecec91c61a8acf938ad338399cad464de; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < add68606a01dcccf18837a53e85b85caf0693b4b; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 7925dd68807cc8fd755b04ca99e7e6f1c04392e8; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 571617f171f723b05f02d154a2e549a17eab4935; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < d3f55f46bb37a8ec73bfe3cfe36e3ecfa2945dfa; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 46a0602c24d7d425dd8e00c749cd64a934aac7ec; >= 5e5b511d8bfaf765cb92a695cda336c936cb86dc, < 6698796282e828733cde3329c887b4ae9e5545e9 | — | cvelist |
| Linux | 5.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/6711ce7e9de4eb1a541ef30638df1294ea4267f8
- https://git.kernel.org/stable/c/74bdf54a847dab209d2a8f65852f59b7fa156175
- https://git.kernel.org/stable/c/5e25ee1ecec91c61a8acf938ad338399cad464de
- https://git.kernel.org/stable/c/add68606a01dcccf18837a53e85b85caf0693b4b
- https://git.kernel.org/stable/c/7925dd68807cc8fd755b04ca99e7e6f1c04392e8
- https://git.kernel.org/stable/c/571617f171f723b05f02d154a2e549a17eab4935
- https://git.kernel.org/stable/c/d3f55f46bb37a8ec73bfe3cfe36e3ecfa2945dfa
- https://git.kernel.org/stable/c/46a0602c24d7d425dd8e00c749cd64a934aac7ec
- https://git.kernel.org/stable/c/6698796282e828733cde3329c887b4ae9e5545e9
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-26).
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.