---
id: CVE-2025-38289
title: 'scsi: lpfc: Avoid potential ndlp use-after-free in dev_loss_tmo_callbk'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  scsi: lpfc: Avoid potential ndlp use-after-free in dev_loss_tmo_callbk

  Smatch detected a potential use-after-free of an ndlp oject in
  dev_loss_tmo_callbk during driver…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= e4913d4bc59227fbdfe6b8f5541f49aaea1cb41c <
    ea405fb4144985d5c60f49c2abd9ba47ea44fdb4
  - >-
    Linux >= 4281f44ea8bfedd25938a0031bebba1473ece9ad <
    4f09940b5581e44069eb31a66cf7f05c3c35ed04
  - >-
    Linux >= 4281f44ea8bfedd25938a0031bebba1473ece9ad <
    b5162bb6aa1ec04dff4509b025883524b6d7e7ca
  - Linux >= 6.12.5 < 6.12.37
  - Linux 6.13
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-05T20:53:15.446596Z'
published: '2025-07-10'
updated: '2026-11-05'
sourceUpdated: '2026-11-05T21:02:30.937Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-38289'
references:
  - url: 'https://git.kernel.org/stable/c/ea405fb4144985d5c60f49c2abd9ba47ea44fdb4'
  - url: 'https://git.kernel.org/stable/c/4f09940b5581e44069eb31a66cf7f05c3c35ed04'
  - url: 'https://git.kernel.org/stable/c/b5162bb6aa1ec04dff4509b025883524b6d7e7ca'
tags:
  - cve.org
epss: 0.0019
epssPercentile: 0.08689
ingestedAt: '2026-11-05T22:38:31.947Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

scsi: lpfc: Avoid potential ndlp use-after-free in dev_loss_tmo_callbk

Smatch detected a potential use-after-free of an ndlp oject in
dev_loss_tmo_callbk during driver unload or fatal error handling.

Fix by reordering code to avoid potential use-after-free if initial
nodelist reference has been previously removed.

## Affected

- `Linux >= e4913d4bc59227fbdfe6b8f5541f49aaea1cb41c < ea405fb4144985d5c60f49c2abd9ba47ea44fdb4`
- `Linux >= 4281f44ea8bfedd25938a0031bebba1473ece9ad < 4f09940b5581e44069eb31a66cf7f05c3c35ed04`
- `Linux >= 4281f44ea8bfedd25938a0031bebba1473ece9ad < b5162bb6aa1ec04dff4509b025883524b6d7e7ca`
- `Linux >= 6.12.5 < 6.12.37`
- `Linux 6.13`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
