{"id":"CVE-2025-38695","summary":"scsi: lpfc: Check for hdwq null ptr when cleaning up lpfc_vport structure","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: lpfc: Check for hdwq null ptr when cleaning up lpfc_vport structure\n\nIf a call to lpfc_sli4_read_rev() from lpfc_sli4_hba_setup() fails, the\nresultant cleanup routine lpfc_sli4_vport_delete_fcp_xri_aborted() may\noccur before sli4_hba.hdwqs are allocated.  This may result in a null\npointer dereference when attempting to take the abts_io_buf_list_lock for\nthe first hardware queue.  Fix by adding a null ptr check on\nphba-\u003esli4_hba.hdwq and early return because this situation means there\nmust have been an error during port initialization.","modified":"2026-04-24T06:42:50.482457620Z","published":"2025-09-04T15:32:48.168Z","related":["SUSE-SU-2025:03600-1","SUSE-SU-2025:03634-1","SUSE-SU-2025:20851-1","SUSE-SU-2025:20861-1","SUSE-SU-2025:20870-1","SUSE-SU-2025:20898-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","SUSE-SU-2025:3751-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4141-1","SUSE-SU-2025:4189-1","openSUSE-SU-2025:20081-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38695.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/46a0602c24d7d425dd8e00c749cd64a934aac7ec"},{"type":"WEB","url":"https://git.kernel.org/stable/c/571617f171f723b05f02d154a2e549a17eab4935"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5e25ee1ecec91c61a8acf938ad338399cad464de"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6698796282e828733cde3329c887b4ae9e5545e9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6711ce7e9de4eb1a541ef30638df1294ea4267f8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/74bdf54a847dab209d2a8f65852f59b7fa156175"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7925dd68807cc8fd755b04ca99e7e6f1c04392e8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/add68606a01dcccf18837a53e85b85caf0693b4b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d3f55f46bb37a8ec73bfe3cfe36e3ecfa2945dfa"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38695.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38695"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5e5b511d8bfaf765cb92a695cda336c936cb86dc"},{"fixed":"6711ce7e9de4eb1a541ef30638df1294ea4267f8"},{"fixed":"74bdf54a847dab209d2a8f65852f59b7fa156175"},{"fixed":"5e25ee1ecec91c61a8acf938ad338399cad464de"},{"fixed":"add68606a01dcccf18837a53e85b85caf0693b4b"},{"fixed":"7925dd68807cc8fd755b04ca99e7e6f1c04392e8"},{"fixed":"571617f171f723b05f02d154a2e549a17eab4935"},{"fixed":"d3f55f46bb37a8ec73bfe3cfe36e3ecfa2945dfa"},{"fixed":"46a0602c24d7d425dd8e00c749cd64a934aac7ec"},{"fixed":"6698796282e828733cde3329c887b4ae9e5545e9"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38695.json"}}],"schema_version":"1.7.5"}