{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38695","id":"CVE-2025-38695","title":"scsi: lpfc: Check for hdwq null ptr when cleaning up lpfc_vport structure","description":"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","descriptionLong":"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->sli4_hba.hdwq and early return because this situation means there\nmust have been an error during port initialization.","published":"2025-09-04T15:32:48.168Z","updated":"2026-11-07T02:30:25.561975832Z","reserved":"2025-04-16T04:51:24.032Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5e5b511d8bfaf765cb92a695cda336c936cb86dc","lessThan":"6711ce7e9de4eb1a541ef30638df1294ea4267f8","status":"affected","versionType":"git"},{"version":"5e5b511d8bfaf765cb92a695cda336c936cb86dc","lessThan":"74bdf54a847dab209d2a8f65852f59b7fa156175","status":"affected","versionType":"git"},{"version":"5e5b511d8bfaf765cb92a695cda336c936cb86dc","lessThan":"5e25ee1ecec91c61a8acf938ad338399cad464de","status":"affected","versionType":"git"},{"version":"5e5b511d8bfaf765cb92a695cda336c936cb86dc","lessThan":"add68606a01dcccf18837a53e85b85caf0693b4b","status":"affected","versionType":"git"},{"version":"5e5b511d8bfaf765cb92a695cda336c936cb86dc","lessThan":"7925dd68807cc8fd755b04ca99e7e6f1c04392e8","status":"affected","versionType":"git"},{"version":"5e5b511d8bfaf765cb92a695cda336c936cb86dc","lessThan":"571617f171f723b05f02d154a2e549a17eab4935","status":"affected","versionType":"git"},{"version":"5e5b511d8bfaf765cb92a695cda336c936cb86dc","lessThan":"d3f55f46bb37a8ec73bfe3cfe36e3ecfa2945dfa","status":"affected","versionType":"git"},{"version":"5e5b511d8bfaf765cb92a695cda336c936cb86dc","lessThan":"46a0602c24d7d425dd8e00c749cd64a934aac7ec","status":"affected","versionType":"git"},{"version":"5e5b511d8bfaf765cb92a695cda336c936cb86dc","lessThan":"6698796282e828733cde3329c887b4ae9e5545e9","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.1","status":"affected"},{"version":"0","lessThan":"5.1","status":"unaffected","versionType":"semver"},{"version":"5.4.297","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.241","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.190","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.149","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.103","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.43","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.11","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16.2","lessThanOrEqual":"6.16.*","status":"unaffected","versionType":"semver"},{"version":"6.17","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/6711ce7e9de4eb1a541ef30638df1294ea4267f8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/74bdf54a847dab209d2a8f65852f59b7fa156175","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5e25ee1ecec91c61a8acf938ad338399cad464de","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/add68606a01dcccf18837a53e85b85caf0693b4b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7925dd68807cc8fd755b04ca99e7e6f1c04392e8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/571617f171f723b05f02d154a2e549a17eab4935","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d3f55f46bb37a8ec73bfe3cfe36e3ecfa2945dfa","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/46a0602c24d7d425dd8e00c749cd64a934aac7ec","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6698796282e828733cde3329c887b4ae9e5545e9","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38695.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38695","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00183,"epssPercentile":0.08004,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38695","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38695","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38695","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38695","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}