# CVE-2025-38289: scsi: lpfc: Avoid potential ndlp use-after-free in dev_loss_tmo_callbk

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-07-10T07:42:05.645Z
- Modified: 2026-11-05T21:18:24.950Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from e4913d4bc59227fbdfe6b8f5541f49aaea1cb41c before ea405fb4144985d5c60f49c2abd9ba47ea44fdb4; from 4281f44ea8bfedd25938a0031bebba1473ece9ad before 4f09940b5581e44069eb31a66cf7f05c3c35ed04; from 4281f44ea8bfedd25938a0031bebba1473ece9ad before b5162bb6aa1ec04dff4509b025883524b6d7e7ca; from 6.12.5 before 6.12.37; 6.13 (not affected: before 6.13; from 6.12.37 up to 6.12.*; from 6.15.3 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.12.5 before 6.12.37; from 6.13 before 6.15.3

## References

- <https://git.kernel.org/stable/c/ea405fb4144985d5c60f49c2abd9ba47ea44fdb4> (patch)
- <https://git.kernel.org/stable/c/4f09940b5581e44069eb31a66cf7f05c3c35ed04> (patch)
- <https://git.kernel.org/stable/c/b5162bb6aa1ec04dff4509b025883524b6d7e7ca> (patch)

## Sources

- CVE List: [CVE-2025-38289](https://www.cve.org/CVERecord?id=CVE-2025-38289), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-38289](https://nvd.nist.gov/vuln/detail/CVE-2025-38289), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-38289 · Whole record: https://cve.day/CVE-2025-38289.json · Rebuilt by cve.day 2026-11-25T22:59:01.057Z
